[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LDAP and Automount
Hey guys,
I have a problem to get automount working correctly with my LDAP.
I am using a Suse Linux Enterprise Edition 11. LDAP works fine, NFS too.
The Client Desktops have an OpenSUSE 11.2 or 11.3. In the YaST LDAP
Client I have activated the "Start Automounter" Option.
On the Server I am working with the rfc2307bis.schema:
-----
attributetype ( 1.3.6.1.1.1.1.31 NAME 'automountMapName'
DESC 'automount Map Name'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributetype ( 1.3.6.1.1.1.1.32 NAME 'automountKey'
DESC 'Automount Key value'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributetype ( 1.3.6.1.1.1.1.33 NAME 'automountInformation'
DESC 'Automount information'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
objectclass ( 1.3.6.1.1.1.2.16 NAME 'automountMap' SUP top STRUCTURAL
MUST ( automountMapName )
MAY description )
objectclass ( 1.3.6.1.1.1.2.17 NAME 'automount' SUP top STRUCTURAL
DESC 'Automount information'
MUST ( automountKey $ automountInformation )
MAY description )
-----
I added these next lines to my LDAP tree:
-----
dn: ou=autofs,dc=MY,dc=DC
objectclass: top
objectclass: organizationalUnit
ou: autofs
dn: ou=home,ou=autofs,dc=MY,dc=DC
objectclass: top
objectclass: organizationalUnit
ou: home
dn: automountKey=/,ou=home,ou=autofs,dc=MY,dc=DC
objectclass: top
objectclass: automount
automountInformation: SERVER:/home/&
automountKey: /
------
and on the client maschine auto.master file:
-----
/home ldap SERVER:ou=home,ou=autofs,dc=MY,dc=DC
-----
and I added these lines in the /etc/sysconfig/autofs file (the old one
are comments now)
-----
DEFAULT_MAP_OBJECT_CLASS="automountMap"
DEFAULT_ENTRY_OBJECT_CLASS="automount"
DEFAULT_MAP_ATTRIBUTE="automountMapName"
DEFAULT_ENTRY_ATTRIBUTE="automountKey"
DEFAULT_VALUE_ATTRIBUTE="automountInformation"
-----
But anyway, it doesn't want to work. What is missing? I tried to work
with some guides in the net, but every guide isn't exact my case, so i
tried it on my own. I am happy for every hint.
Thanks.
Holger