Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-05-2005, 08:13 AM
|
#1
|
Member
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155
Rep:
|
nss_ldap, can't contact LDAP server!
i use Fedora 4, OpenLDAP 2.3.11 , i replaced NIS with LDAP but i face the following troubles, when the server starts i got the following error: (log file)
*********************************************************
Dec 5 15:29:57 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Dec 5 15:30:01 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...
Dec 5 15:30:09 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 16 seconds)...
Dec 5 15:30:25 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 32 seconds)...
Dec 5 15:30:57 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 64 seconds)...
Dec 5 15:32:01 x-masterserver slapd[4364]: nss_ldap: could not search LDAP server - Server is unavailable
Dec 5 15:32:01 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Dec 5 15:32:05 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...
Dec 5 15:32:13 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 16 seconds)...
Dec 5 15:32:29 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 32 seconds)...
Dec 5 15:33:01 x-masterserver slapd[4364]: nss_ldap: reconnecting to LDAP server (sleeping 64 seconds)...
Dec 5 15:34:05 x-masterserver slapd[4364]: nss_ldap: could not search LDAP server - Server is unavailable
Dec 5 15:34:05 x-masterserver slapd[4403]: slapd starting
*********************************************************
i can use LDAP users from any client but i can't use it on the LDAP server, i got Access Denied!
i installed nss_ldap on the server only (nss_ldap-244)
is this the main problem? if so how can i remove nss_ldap?
by the way i tried to use ldapsearch on the server and it works fine so i think that ldap.conf is correct
thanks alot
Amir Saad
Last edited by mesh2005; 12-05-2005 at 08:14 AM.
|
|
|
12-05-2005, 08:35 AM
|
#2
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
What do you have in pam.d/system-auth and nsswitch.conf? I've never actually tried authenticating directly on the server itself, only from clients or additional servers such passing it from Samba/mail servers, but don't think there's anything preventing you from doing it.
|
|
|
12-05-2005, 09:24 AM
|
#3
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
|
|
|
12-06-2005, 01:22 AM
|
#4
|
Member
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155
Original Poster
Rep:
|
Thanks a lot for replies
the problem is not solved yet, here are the conf files:
******************************************************
************************ldap.conf*********************
#
# LDAP Defaults
#
host 127.0.0.1
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE dc=example, dc=com
BASE dc=demo,dc=mydomain,dc=domain,dc=org
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
******************************************************
*********************/etc/pam.d/system-auth***********
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth sufficient /lib/security/$ISA/pam_ldap.so use_first_pass
auth required /lib/security/$ISA/pam_deny.so
account required /lib/security/$ISA/pam_unix.so broken_shadow
account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet
account [default=bad success=ok user_unknown=ignore] /lib/security/$ISA/pam_ldap.so
account required /lib/security/$ISA/pam_permit.so
password requisite /lib/security/$ISA/pam_cracklib.so retry=3
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok nis
password sufficient /lib/security/$ISA/pam_ldap.so use_authtok
password required /lib/security/$ISA/pam_deny.so
session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
session optional /lib/security/$ISA/pam_ldap.so
********************************************************
the ldapsearch works correctly on the server,
the problem is the long delay at the login and i found the following error in the log file:
********************************************************
Dec 6 09:13:51 x-masterserver nscd: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Dec 6 09:13:55 x-masterserver nscd: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...
Dec 6 09:14:03 x-masterserver nscd: nss_ldap: reconnecting to LDAP server (sleeping 16 seconds)...
Dec 6 09:14:19 x-masterserver nscd: nss_ldap: reconnecting to LDAP server (sleeping 32 seconds)...
Dec 6 09:14:51 x-masterserver nscd: nss_ldap: reconnecting to LDAP server (sleeping 64 seconds)...
Dec 6 09:15:55 x-masterserver nscd: nss_ldap: could not search LDAP server - Server is unavailable
*******************************************************
the ldap server is hosted locally , i hope u can help me!
just one more question how can i configure nss
_ldap ?
i don't use TLS,,,
thanks alot
Amir Saad
|
|
|
All times are GMT -5. The time now is 09:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|