On Wed, 2007-11-28 at 11:42 +0900, Ian Kent wrote:

> 
> It's clear you didn't pay sufficient attention to my mail.
> Go back and read it again, carefully.
----
OK - I've gotten somewhere...I get 'users' but not 'files'

the only not commented lines on /etc/auto.master on fedora client...
/net    /etc/auto.net
+auto.master

LDAP
dn: automountMapName=auto.master,dc=tobyhouse,dc=com
objectClass: automountMap
objectClass: top
automountMapName: auto.master

dn: description=files,automountMapName=auto.master,dc=tobyhouse,dc=com
objectClass: top
objectClass: automount
automountInformation: auto.misc
automountKey: /home/storage
description: files

dn: description=users,automountMapName=auto.master,dc=tobyhouse,dc=com
objectClass: top
objectClass: automount
automountInformation: auto.home
automountKey: /home/storage
description: users

this now automounts...
dn: automountMapName=auto.home,dc=tobyhouse,dc=com
objectClass: top
objectClass: automountMap
automountMapName: auto.home

dn: automountKey=users,automountMapName=auto.home,dc=tobyhouse,dc=com
objectClass: automount
automountKey: users
automountInformation: srv1.tobyhouse.com:/home/storage/users

this doesn't automount
dn: automountMapName=auto.misc,dc=tobyhouse,dc=com
objectClass: top
objectClass: automountMap
automountMapName: auto.misc

dn: automountKey=files,automountMapName=auto.misc,dc=tobyhouse,dc=com
objectClass: automount
automountKey: files
automountInformation: srv1.tobyhouse.com:/home/storage/files

and an fyi...

> I advised you add "automountMapName: auto.home" to these entries,
> especially since it's in the dn. Otherwise, looks like a valid entry for
> the LDAP map auto.home for key users.
----
that's a problem for me...

# cat automount3.ldif
dn: automountKey=users,automountMapName=auto.home,dc=tobyhouse,dc=com
objectClass: automount
automountKey: users
automountMapName: auto.home
automountInformation: srv1.tobyhouse.com:/home/storage/users

# ldapadd -x -D 'UNIMPORTANT' -W -f automount3.ldif
Enter LDAP Password:
adding new entry
"automountKey=users,automountMapName=auto.home,dc=tobyhouse,dc=com"
ldap_add: Object class violation (65)
        additional info: attribute 'automountMapName' not allowed

if I comment out automountMapName: auto.home, no problem which is why.

I also want to point out that I cannot include both rfc2307.schema and
autofs.schema because restarting ldap service tosses this error
(probably not unexpected)...
hecking configuration files for
slapd:  /etc/openldap/schema/redhat/rfc2307.schema: line 20:
Inconsistent duplicate attributeType: "automountInformation"

and so for the purposes of this exercise, I am only using rfc2307.schema
which is where we started and is the only schema that includes
automountMapName.

SO I ended up putting 'files' into 'auto.home' and it works...

dn: automountKey=files,automountMapName=auto.home,dc=tobyhouse,dc=com
automountKey: files
objectClass: automount
automountInformation: srv1.tobyhouse.com:/home/storage/files

which I don't understand why auto.misc didn't work but I can live with 
this...in fact, it's probably a bit cleaner since it involves one less LDAP 
branch.

Thanks for all your help

Craig

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to