[CentOS] LDAP and Automount

Craig White craigwhite at azapple.com
Sat Dec 8 01:11:25 UTC 2007


On Fri, 2007-12-07 at 08:40 -1000, Camron W. Fox wrote:
> Alle,
> 
> 	I'm following the instructions in section 19.3.3.2 of the docs @ 
> http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-nfs-config-autofs-LDAP.html, 
> but I cannot add the following entry in LDAP:
> 
> dn: automountMapName=auto.home,dc=subaru,dc=nao,dc=ac,dc=jp
> objectClass: top
> objectClass: automountMap
> automountMapName: auto.home
> 
> 	After looking at the schemas in /etc/openldap/schema, I find that 
> "automountMapName" does not exist:
> 
> [root at loa schema]# find . -exec grep auto {} \; -ls
> attributetype ( 1.3.6.1.1.1.1.25 NAME 'automountInformation'
> 	DESC 'Information used by the autofs automounter'
> objectclass ( 1.3.6.1.1.1.1.13 NAME 'automount' SUP top STRUCTURAL
> 	DESC 'An entry in an automounter map'
> 	MUST ( cn $ automountInformation )
> objectclass ( 1.3.6.1.4.1.2312.4.2.2 NAME 'automountMap' SUP top STRUCTURAL
> 	DESC 'An group of related automount objects'
> 4425955    4 -rw-r--r--   1 root     root          748 Nov 10 04:30 
> ./redhat/autofs.schema
> [root at loa schema]#
> 
> 	The docs say RFC2307bis is the most recently established schema, but as 
> far as I can tell, it has expired. I've found several references on line 
> about nisMapName vs automountMapName, but I'd like to stay with what's 
> documented.
> 	Am I missing something? We're trying to setup a server to use for both 
> Linux and SPARC client authentication.
----
your lucky day...

# cat /etc/openldap/schema/redhat/rfc2307.schema
attributeType ( 1.3.6.1.1.1.1.31
        NAME 'automountMapName'
        DESC 'automount Map Name'
        EQUALITY caseExactIA5Match
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE
        X-ORIGIN 'user defined' )

attributeType ( 1.3.6.1.1.1.1.32
        NAME 'automountKey'
        DESC 'Automount Key value'
        EQUALITY caseExactIA5Match
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE
        X-ORIGIN 'user defined' )

attributeType ( 1.3.6.1.1.1.1.33
        NAME 'automountInformation'
        DESC 'Automount information'
        EQUALITY caseExactIA5Match
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE
        X-ORIGIN 'user defined' )

objectClass ( 1.3.6.1.1.1.2.16
        NAME 'automountMap'
        DESC 'Automount Map information'
        SUP top STRUCTURAL
        MUST automountMapName
        MAY description
        X-ORIGIN 'user defined' )

objectClass ( 1.3.6.1.1.1.2.17
        NAME 'automount'
        DESC 'Automount information'
        SUP top STRUCTURAL
        MUST ( automountKey $ automountInformation )
        MAY description
        X-ORIGIN 'user defined' )

If you search through the archives from RHELv5 mail list, you will see
that I just stumbed down the same pathway...

Craig




More information about the CentOS mailing list