Guest Kaspersky Posted August 1, 2007 Report Share Posted August 1, 2007 Hi all I have use Mandriva 2007 and I have several problems with configuring autofs + LDAP client on it. 1. I have configured LDAP client and now ldap users can login to my system without problems. But strange errors are printed out to /var/log/messages file: Aug 1 09:05:24 naos dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:24 naos dbus-daemon: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:24 naos dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:24 naos dbus-daemon: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:25 naos avahi-daemon[2680]: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:25 naos avahi-daemon[2680]: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:25 naos avahi-daemon[2680]: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:25 naos avahi-daemon[2680]: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:26 naos dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:26 naos dbus-daemon: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:26 naos dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:26 naos dbus-daemon: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:26 naos xfs: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:26 naos xfs: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:26 naos xfs: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:26 naos xfs: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:26 naos rpc.idmapd[2871]: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:26 naos rpc.idmapd[2871]: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:27 naos kdm_config[3003]: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:27 naos kdm_config[3003]: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:29 naos clamd: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:30 naos clamd: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:30 naos clamd: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:30 naos clamd: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:31 naos smbd[3422]: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:31 naos smbd[3422]: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:31 naos smbd[3422]: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:31 naos smbd[3422]: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:32 naos freshclam: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:32 naos freshclam: nss_ldap: could not search LDAP server - Server is unavailable Aug 1 09:05:32 naos freshclam: nss_ldap: failed to bind to LDAP server ldap://megapolis2: Can't contact LDAP server Aug 1 09:05:32 naos freshclam: nss_ldap: could not search LDAP server - Server is unavailable Why nss_ldap cannot contact to megapolis2? OpenSuse 10.2 works without problems. 2. I want to use autofs + LDAP but it does not work on Mandiva2007. I have done the following: /etc/autofs/autofs.conf # # Define default options for autofs. # # MASTER_MAP_NAME - default map name for the master map. # MASTER_MAP_NAME="auto.master" # # TIMEOUT - set the default mount timeout (default 600). # TIMEOUT=300 # # BROWSE_MODE - maps are browsable by default. # BROWSE_MODE="yes" # # LOGGING - set default log level "none", "verbose" or "debug" # #LOGGING="none" # # Define the default LDAP schema to use for lookups # # System default # MAP_OBJECT_CLASS="nisMap" ENTRY_OBJECT_CLASS="nisObject" MAP_ATTRIBUTE="nisMapName" ENTRY_ATTRIBUTE="cn" VALUE_ATTRIBUTE="nisMapEntry" /etc/autofs/auto.master ldap megapolis2:ou=AUTOFS,dc=domain,dc=com /var/log/messages Aug 1 09:05:30 naos kernel: automount[3206]: segfault at 0000000000000000 rip 00002b890f9f9735 rsp 00007fff9b5628c8 error 4 Can you help me to solve this problems? Link to comment Share on other sites More sharing options...
Guest teamanx Posted October 4, 2007 Report Share Posted October 4, 2007 Well, I hope it is not too late to answer your question. Try the following (it has worked for me in PCLOS, so I suppose it works also in Mandriva): - Edit the file /etc/ldap.conf - search the following line: #uri ldap://127.0.0.1/ - uncomment it and replace the IP with your LDAP server's IP. - reboot. Hope it helps! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now