[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Automount issue with uppercase mountpoints
Hi,
I run openldap 2.2.17 on a Solaris 9 machine. All my clients (also
solaris 9) can
automount from auto_direct just fine as long as the mount points are
lowercase. If the mount points are uppercase (like /opt/SUNWspro),
then the clients cannot mount. Is this a Solaris issue or an
openldap issue. I do not know how openldap handles upper/lower case
in the search filters so I hope you guys have the answer.
Here is what I see in the logs:
Nov 14 04:22:04 hilbert slapd[28074]: [ID 848112 local4.debug]
conn=57612 fd=21
ACCEPT from IP=130.207.146.209:40611 (IP=0.0.0.0:389)
Nov 14 04:22:04 hilbert slapd[28074]: [ID 998954 local4.debug]
conn=57612 op=0 S
RCH
base="nisMapName=auto_direct,ou=Automount,dc=math,dc=gatech,dc=edu"
scope=1
deref=3 filter="(&(objectClass=nisObject)(cn=/opt/%s%u%n%wspro))"
Nov 14 04:22:04 hilbert slapd[28074]: [ID 362707 local4.debug]
conn=57612 op=0 S
EARCH RESULT tag=101 err=0 nentries=0 text=
Nov 14 04:22:04 hilbert slapd[28074]: [ID 338319 local4.debug]
conn=57612 op=1 U
NBIND
Nov 14 04:22:04 hilbert slapd[28074]: [ID 952275 local4.debug]
conn=57612 fd=21
closed
Note the search filter (cn=/opt/%s%u%n%wspro).
On the client I get a permission denied. (It is not a permission
error as the client never hits the nfs server. It only hits the
ldap server and then returns permission denied). A simple fix for
it was to do the following on the client:
/etc/init.d/autofs stop
cd /opt
rmdir /opt/SUNWspro
mkdir /opt/sunwspro
ln -s sunwspro SUNWspro
then I changed the maps on the auto_direct.ldif map
Even though this hack works, I would like to find the right solution
for mount points that use uppercase letters.
Here is how my auto_direct maps looks like:
$ cat auto.direct.ldif
dn: nisMapName=auto_direct,ou=Automount,dc=math,dc=gatech,dc=edu
objectClass: top
objectClass: nisMap
nisMapName: auto_direct
dn:
cn=/opt/SUNWspro,nisMapName=auto_direct,ou=Automount,dc=math,dc=gatech,dc=ed
u
objectClass: nisObject
cn: /opt/SUNWspro
nisMapEntry:
-fstype=cachefs,-actimeo=10,-ro,-nosuid,cachedir=/export/cachefs,ba
ckfstype=nfs cauchy:/opt/SUNWspro
nisMapName: auto_direct
dn:
cn=/usr/local,nisMapName=auto_direct,ou=Automount,dc=math,dc=gatech,dc=edu
objectClass: nisObject
cn: /usr/local
nisMapEntry:
-fstype=cachefs,-actimeo=10,cachedir=/export/cachefs,backfstype=nfs
cauchy:/export/local/local-Solaris
nisMapName: auto_direct
dn:
cn=/usr/local-ai,nisMapName=auto_direct,ou=Automount,dc=math,dc=gatech,dc=ed
u
objectClass: nisObject
cn: /usr/local-ai
nisMapEntry:
-fstype=cachefs,-actimeo=10,-ro,-nosuid,cachedir=/export/cachefs,ba
ckfstype=nfs cauchy:/export/local/local-ai
nisMapName: auto_direct
dn:
cn=/var/mail,nisMapName=auto_direct,ou=Automount,dc=math,dc=gatech,dc=edu
objectClass: nisObject
cn: /var/mail
nisMapEntry: -actimeo=0 math:/var/mail
nisMapName: auto_direct
-------------------------------end of auto_direct.ldif-------------
Thanks for your help,
Diego