Shane <[EMAIL PROTECTED]> writes: > Hello, > > Hoping someone can help me figure out if its possible to do > multi-level deep automounts via ldap. I've seen a few examples of this > using files but can't get it to work using LDAP. > > eg I want: > server1:/export/protemp - /nfs/tmp/production > server2:/export/tmp/weekly - /nfs/tmp/weekly > server2:/export/tmp/hourly - /nfs/tmp/hourly > > pseudo ldap implementation
It's better to just include your ldif. Your pseudo code doesn't make any sense to me. My guess is that you want something like the following: dn: ou=auto.master,dc=<DOMAIN1>,dc=<DOMAIN2> objectClass: automountMap objectClass: organizationalUnit dn: cn=/nfs,ou=auto.master,dc=<DOMAIN1>,dc=<DOMAIN2> objectClass: automount automountInformation: auto.nfs dn: ou=auto.nfs,dc=<DOMAIN1>,dc=<DOMAIN2> objectClass: organizationalUnit objectClass: automountMap dn: automountKey=tmp,ou=auto.nfs,dc=<DOMAIN1>,dc=<DOMAIN2> automountKey: tmp automountInformation: -rw,hard,intr,tcp /production server1:/export/protemp /weekly server2:/export/tmp/weekly /hourly server2:/export/tmp/hourly I didn't test the above, so there may be problems with my ldif -- sorry! If you haven't decided on a schema to use yet, then I'd recommend rfc2307bis. The schema above uses cn, which is not case sensitive. Cheers, Jeff _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
