Jump to content

Configuring autofs + LDAP client


Guest Kaspersky
 Share

Recommended Posts

Guest Kaspersky

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

  • 2 months later...
Guest teamanx

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...