Re: LDAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2003-02-19 at 10:33, Tom Diehl wrote:

> 
> Were you able to get the autofs part working?? So far I have been unable to
> figure out how to pass args to autofs via LDAP. The parts I do have working
> though are really cool. Still need to write some scripts to manage things
> better though.
> 

I was able to get it working... Note that mine is running on a "Sun
LDAP/NIS" server.. so you may want to use something like
nisMapName=auto_home instead of automountMapName...

[tommy@pickles tommy]$ service autofs status
Configured Mount Points:
------------------------
/usr/sbin/automount /home ldap 
automountMapName=auto_home,dc=redneck,dc=nu 
/usr/sbin/automount /share ldap 
automountMapName=auto_share,dc=redneck,dc=nu 

Active Mount Points:
--------------------
/usr/sbin/automount /home ldap
automountMapName=auto_home,dc=redneck,dc=nu
/usr/sbin/automount /share ldap
automountMapName=auto_share,dc=redneck,dc=nu
[tommy@pickles tommy]$ 



[tommy@pickles tommy]$ ldapsearch -x -b dc=redneck,dc=nu 
nismapname=auto.master      
version: 2

#
# filter: nismapname=auto.master
# requesting: ALL
#

# auto_master, redneck, nu
dn: automountMapName=auto_master,dc=redneck,dc=nu
nisMapName: auto.master
objectClass: top
objectClass: automountMap
objectClass: nismap
automountMapName: auto_master

# /home, auto_master, redneck, nu
dn: automountkey=/home,automountMapName=auto_master,dc=redneck,dc=nu
automountInformation: auto_home
nisMapName: auto.master
nisMapEntry: ldap: automountMapName=auto_home,dc=redneck,dc=nu
automountKey: /home
objectClass: top
objectClass: automount
objectClass: nisobject
cn: /home
description: Auto Home Map
description: autohome filesystem

# /share, auto_master, redneck, nu
dn: autoMountKey=/share,autoMountMapName=auto_master,dc=redneck,dc=nu
automountInformation: auto_share
nisMapName: auto.master
nisMapEntry: ldap: automountMapName=auto_share,dc=redneck,dc=nu
automountKey: /share
objectClass: autoMount
objectClass: top
objectClass: nisobject
cn: /share
description: Autoshare filesystem

# search result
search: 2
result: 0 Success

# numResponses: 4
# numEntries: 3
[tommy@pickles tommy]$ 


good luck :)

Tommy
-- 
Tommy McNeely <Tommy.McNeely@Sun.com>
Sun Microsystems



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux