Home Forums OS X Server and Client Discussion Open Directory Leopard autofs Openldap and NIS maps.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #370743
    xom
    Participant

    Ok, I’ve searched for awhile and I’m not finding what I need to make this happen.
    We have an openldap server runing on a linux machine. I am trying to get the apple leopard client to understand the automount maps we have in the ldap tree on the server. I have successfully configured the apple client’s user and group settings simply by appending ou=People, to the searchbases of the User and People records and appending ou=Group, for the Groups record on the client. The automount part is much trickier apparently. Like sun apple uses the auto_foo syntax with autofs but unlike sun I can’t figure out what the equivalent command to ldapclient is on the apple. Basically we slurped over the NIS maps from nis into ldap so now at the root level of the ldap structure on the ldap server we have:

    # LDIF Export for: dc=foo,dc=bar,dc=bla
    # Generated by phpLDAPadmin ( http://phpldapadmin.sourceforge.net/ ) on December 6, 2007 12:33 pm
    # Server: Master LDAP Server (ldap.foo.bar.bla)
    # Search Scope: one
    # Search Filter: (objectClass=*)
    # Total Entries: 8

    dn: nisMapName=auto.foo,dc=foo,dc=bar,dc=bla
    objectClass: top
    objectClass: nisMap
    nisMapName: auto.foo

    dn: nisMapName=auto.master,dc=foo,dc=bar,dc=bla
    objectClass: top
    objectClass: nisMap
    nisMapName: auto.master

    dn: nisMapName=auto.mirror,dc=foo,dc=bar,dc=bla
    objectClass: top
    objectClass: nisMap
    nisMapName: auto.mirror

    dn: nisMapName=auto.notbackedup,dc=foo,dc=bar,dc=bla
    objectClass: top
    objectClass: nisMap
    nisMapName: auto.notbackedup

    dn: nisMapName=auto.projects,dc=foo,dc=bar,dc=bla
    objectClass: top
    objectClass: nisMap
    nisMapName: auto.projects

    dn: nisMapName=auto.test,dc=foo,dc=bar,dc=bla
    objectClass: top
    objectClass: nisMap
    nisMapName: auto.test

    dn: ou=Group,dc=foo,dc=bar,dc=bla
    ou: Group
    objectClass: top
    objectClass: organizationalUnit

    dn: ou=People,dc=foo,dc=bar,dc=bla
    ou: People
    objectClass: top
    objectClass: organizationalUnit

    below is the contents of the local ldap config file that the ldapclient command generates on Solaris machines:

    # Do not edit this file manually; your changes will be lost.Please use ldapclient (1M) instead.
    #
    NS_LDAP_FILE_VERSION= 2.0
    NS_LDAP_SERVERS= ldap.foo.bar.bla, ldap2.foo.bar.bla
    NS_LDAP_SEARCH_BASEDN= dc=foo,dc=bar,dc=bla
    NS_LDAP_CACHETTL= 0
    NS_LDAP_SERVICE_SEARCH_DESC= auto_foo:nisMapName=auto.foo,dc=foo,dc=bar,dc=bla
    NS_LDAP_SERVICE_SEARCH_DESC= auto_projects:nisMapName=auto.projects,dc=foo,dc=bar,dc=bla
    NS_LDAP_SERVICE_SEARCH_DESC= auto_test:nisMapName=auto.test,dc=foo,dc=ucsc,dc=edu
    NS_LDAP_SERVICE_SEARCH_DESC= auto_notbackedup:nisMapName=auto.notbackedup,dc=foo,dc=ucsc,dc=edu
    NS_LDAP_SERVICE_SEARCH_DESC= auto_mirror:nisMapName=auto.mirror,dc=foo,dc=bar,dc=bla
    NS_LDAP_ATTRIBUTEMAP= automount:automountInformation=nisMapEntry
    NS_LDAP_ATTRIBUTEMAP= automount:automountKey=cn
    NS_LDAP_ATTRIBUTEMAP= automount:automountMapName=nisMapName
    NS_LDAP_OBJECTCLASSMAP= automount:automount=nisObject
    NS_LDAP_OBJECTCLASSMAP= automount:automountMap=nisMap
    NS_LDAP_SERVICE_AUTH_METHOD= pam_ldap:tls:simple
    NS_LDAP_SERVICE_AUTH_METHOD= passwd-cmd:tls:simple

    Basically I would like to set +auto_master in the auto_master in /etc and with the correct translations like the suns have, just get my mount info from the ldap server as needed.
    Any info would be greatly appreciated
    -xom

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed