Syntax for LDAP automounts to work

From: Dave Martini (martini@mrpeabody.llnl.gov)
Date: Tue Jan 03 2006 - 18:10:18 EST


Setting up SunOne Directory Server 5.2 on Solaris 9 and trying to get
automounts to work.

I'm able to see the automount info from the client as shown below

ldapclient# ldaplist -l auto_home
dn: automountkey=*,automountMapName=auto_home,dc=llnl,dc=gov
         objectClass: top
         objectClass: automount
         automountKey: *
         automountInformation: ldapserver:/home/&
ldapclient#
ldapclient# ldaplist -l auto_master
dn: automountkey=/-,automountMapName=auto_master,dc=llnl,dc=gov
         objectClass: top
         objectClass: automount
         automountKey: /-
         automountInformation: auto_direct

dn: automountkey=/home,automountMapName=auto_master,dc=llnl,dc=gov
         objectClass: top
         objectClass: automount
         automountKey: /home
         automountInformation: auto_home -nobrowse
ldapclient#

I'm confused as to how the entry should read for the specific ldap user.
In the home directory field for a user should it read /home/username
or should it read a physical location like /export/home? or should it
read /home/& When I set it to /home/username and log in it doesn't find
the users home directory. And how do I specify a specific machine where
the home directory will reside? For instance in NIS+ auto_home table I
can specify machinename:/path.

ldapclient# su - user80
No directory!
ldapclient# pwd
/
ldapclient#

Here is how the user80 record looks

ldapclient# ldaplist -l passwd
dn: uid=user80,ou=People,dc=llnl,dc=gov
         cn: This is user80
         gecos: user80's ldap account
         gidNumber: 777
         loginShell: /bin/csh
         objectClass: top
         objectClass: account
         objectClass: posixaccount
         objectClass: shadowaccount
         uidNumber: 888
         uid: user80
         userPassword: {SSHA}a2zNPbi/n8M809op3OmC2cRRHI6xH2Np2GXTEQ==
         homeDirectory: /home/user80
ldapclient#

Thanks for any and all suggestions/help.

Dave Martini
LLNL
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:38:21 EDT