Migation autofs to ldap
Iain Rae
iainr at zathras.org
Fri Mar 19 00:39:00 UTC 2004
Neal D. Becker wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Neal D. Becker wrote:
>
>
>
>>Can anyone help me with migrating autofs to ldap? I tried the migration
>>script /usr/share/openldap/migration/migrate_automount.pl. Am I doing
>>something wrong, or is there a problem with the script?
>>
>>To test, I added this line to /etc/auto.master:
>>
>>/test ldap:rpppc1.md.hns.com:ou=auto.test,dc=adg,dc=hns,dc=com
>>
>>
>>
>
>OK, I answered my own question. It was NOT EASY to find the answer!
>
>The syntax should be:
>/test ldap://rpppc1.md.hns.com/nisMapName=auto.test,dc=adg,dc=hns,dc=com
>
>
If it's any help this seems to work for me
LDIF of auto.master on server (RH9)
dn: nisMapName=auto.master,dc=zathras,dc=org
objectClass: top
objectClass: nisMap
nisMapName: auto.master
dn: cn=/misc,nisMapName=auto.master,dc=zathras,dc=org
objectClass: nisObject
cn: /misc
nisMapEntry: /etc/auto.misc --timeout=60
nisMapName: auto.master
dn: cn=/home,nisMapName=auto.master,dc=zathras,dc=org
objectClass: nisObject
cn: /home
nisMapEntry: ldap:glorious:nisMapName=auto.home,dc=zathras,dc=org
nisMapName: auto.master
dn: cn=/packages,nisMapName=auto.master,dc=zathras,dc=org
objectClass: nisObject
cn: /packages
nisMapName: auto.master
nisMapEntry: ldap:glorious:nisMapName=auto.packages,dc=zathras,dc=org
LDIF of auto.home on server( most home directories are on /export/home
except for the ~redhat)
dn: nisMapName=auto.home,dc=zathras,dc=org
objectClass: top
objectClass: nisMap
nisMapName: auto.home
dn: cn=/,nisMapName=auto.home,dc=zathras,dc=org
objectClass: nisObject
nisMapEntry: glorious.zathras.org:/export/home/&
nisMapName: auto.home
cn: /
dn: cn=redhat,nisMapName=auto.home,dc=zathras,dc=org
objectClass: nisObject
cn: redhat
nisMapEntry: glorious:/export/home1/&
nisMapName: auto.home
{on client (FC1)]
[iainr at victorious tmp]$ more /etc/auto.master
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
# /misc /etc/auto.misc --timeout=60
nsswitch.conf has
automount: files ldap
More information about the fedora-test-list
mailing list