Skip to contentSkip to conversation

automounter w/ LDAP redundant servers

DISCUSSION Erich Weiler 2 participants 5 messages Aug 2, 2006 – Aug 3, 2006 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hi ya'll,

I posted about this earlier but received no response... I was wondering if any of you know if I can ask the developers if this is a feature that has not been implemented or if I simply am doing something wrong? Maybe point me in the right direction?

ciao, erich

---------------------

Original post:

Question about the linux automounter that comes with fedora core 5... I have 3 ldap servers listed in my /etc/openldap/ldap.conf file. They are there for redundancy in case the primary server goes down:

/etc/openldap/ldap.conf:

host primary.domain.com slave1.domain.com slave2.domain.com base dc=domain,dc=com

And it seems that while the primary server is up, the mounts work fine, but when I take the primary offline, the automounter has trouble finding the second one. All other LDAP related actions/queries work with the failover server, just the automounter has troubles.

Is AutoFS for linux tweaked such that it will automatically try second and third failover servers if they are listed in /etc/openldap/ldap.conf? Or am I just doing something wrong maybe?

Thanks for any hints!

ciao, erich

maintainer
#1 lore raw
Quoted 6 lines · Erich Weiler

Hi ya'll,

I posted about this earlier but received no response... I was wondering if any of you know if I can ask the developers if this is a feature that has not been implemented or if I simply am doing something wrong? Maybe point me in the right direction?

Maybe a bug but, if the LDAP library can do it then autofs should just do it. There isn't any specific code to handle it.

So
ldap://server1 server2/.....

should work since the ldap_init call, I believe, will take such an argument. But then we need to check that autofs isn't getting in the road when it reads the ldap string to start with.

Quoted 33 lines

ciao, erich

---------------------

Original post:

Question about the linux automounter that comes with fedora core 5... I have 3 ldap servers listed in my /etc/openldap/ldap.conf file. They are there for redundancy in case the primary server goes down:

/etc/openldap/ldap.conf:

host primary.domain.com slave1.domain.com slave2.domain.com base dc=domain,dc=com

And it seems that while the primary server is up, the mounts work fine, but when I take the primary offline, the automounter has trouble finding the second one. All other LDAP related actions/queries work with the failover server, just the automounter has troubles.

Is AutoFS for linux tweaked such that it will automatically try second and third failover servers if they are listed in /etc/openldap/ldap.conf? Or am I just doing something wrong maybe?

Thanks for any hints!

ciao, erich

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#2 lore raw
Quoted 6 lines

So
ldap://server1 server2/.....

should work since the ldap_init call, I believe, will take such an argument. But then we need to check that autofs isn't getting in the road when it reads the ldap string to start with.

Sounds fantastic! How can we check that? :)

Thanks very much for responding, btw.

ciao, erich

maintainer
#3 lore raw
Quoted 8 lines · Erich Weiler
Quoted 6 lines

So
ldap://server1 server2/.....

should work since the ldap_init call, I believe, will take such an argument. But then we need to check that autofs isn't getting in the road when it reads the ldap string to start with.

Sounds fantastic! How can we check that? :)

I think that putting more than one server in and running autofs with the debug option then checking the log may reveal what we need.

Ian

#4 lore raw

Er, as soon as I turned on debugging to debug it, it magically started working. Automatically looked to the second server when I turned off slapd on the first... Not sure why it wasn't working before... Feel a little sheepish... Maybe I rebooted the machine after the change had been made or something... <grumble>

Oh well, I guess it was something weird I was doing that I wasn't aware of... Thanks for chiming in in any case!

ciao, erich

Quoted 13 lines · Ian Kent
Quoted 7 lines · Erich Weiler
Quoted 6 lines

So
ldap://server1 server2/.....

should work since the ldap_init call, I believe, will take such an argument. But then we need to check that autofs isn't getting in the road when it reads the ldap string to start with.

Sounds fantastic! How can we check that? :)

I think that putting more than one server in and running autofs with the debug option then checking the log may reveal what we need.

Ian