Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] nsswitch.conf ldap nss_ldap-249
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
loux.thefuture
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 135

PostPosted: Sat May 27, 2006 6:10 pm    Post subject: [solved] nsswitch.conf ldap nss_ldap-249 Reply with quote

Hello,
everything were good
but today i have a problem with nss_ldap (i emerge nss_ldap-249)
when i shutdown slapd
i'm not able to do "su ldap" anymore,
my nsswitch.conf is : xxx compact ldap
and ldap is in my /etc/passwd file
but nss_ldap try to bind 4 seconds, 8 seconds, ...

i found that nss_ldap-249 has a trouble with it
so i emerge nss_ldap-239-r1 and everything goes right

so make be careful with nss_ldap-249
loux
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
c0vert
Guru
Guru


Joined: 27 Aug 2004
Posts: 355

PostPosted: Sun May 28, 2006 12:40 am    Post subject: Reply with quote

hmm, I had the same problem. THanks
_________________
AMD 64 3000+
1 Gig Corsair DRR400 RAM
ATI RAdeon 9800 Pro
KN8E-deluxe
SATA 120 Gig Seagate
Back to top
View user's profile Send private message
jayjay
n00b
n00b


Joined: 18 Jun 2003
Posts: 34
Location: Germany

PostPosted: Sun May 28, 2006 8:36 pm    Post subject: Reply with quote

Damn,

took me a lot of time this afternoon to find out!
I did an "emerge -e world" last night and after
that ldap was broken.

sys-auth/nss_ldap-249 is broken.


Cheers JJ
Back to top
View user's profile Send private message
robbat2
Developer
Developer


Joined: 19 Feb 2003
Posts: 82

PostPosted: Mon May 29, 2006 12:03 am    Post subject: Reply with quote

Would each of you please file seperate bugs, assigned straight to ldap-bugs@gentoo.org?

Also, consider bug #134473.

249 works for me, and at least one other user (once he changed his configuration).

Include:
1. The uncommented lines from /etc/ldap.conf
2. emerge --info
3. Uncommented lines from: /etc/ssh/sshd_config
4. Uncommented lines from: /etc/pam.d/system-auth
5. Uncommented lines from: /etc/nsswitch.conf

Using the data from ldap.conf, construct your version of this, and show me the command and the output
Code:
ldapsearch -v -x -b ${nss_base_passwd} -s one -h ${host} uid=${username}

OR
Code:
ldapsearch -v -x -b ${nss_base_passwd} -s one -H ${uri} uid=${username}


Use the first variant if you use a 'host' line in ldap.conf, and the second one if you use 'uri'.
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Tue May 30, 2006 10:59 pm    Post subject: Reply with quote

I've experienced the same behaviour back when 249 was introduced to ~amd64.
At the time I didn't feel like diving into it so I masked it and kept using 239.
But now the 250 release bit me again and I started to look around for some information.

I'll post some details to the bugreport that brought me here tomorrow ( https://bugs.gentoo.org/show_bug.cgi?id=134966 )

But I do want to share one thing:
Code:
# genlop -t nss_ldap
 * sys-auth/nss_ldap

     Mon Jul 25 17:11:10 2005 >>> sys-auth/nss_ldap-239-r1
       merge time: 1 minute and 49 seconds.

     Mon Jul 25 21:11:57 2005 >>> sys-auth/nss_ldap-239-r1
       merge time: 1 minute and 34 seconds.

     Sat Feb 25 15:39:09 2006 >>> sys-auth/nss_ldap-249
       merge time: 39 minutes and 31 seconds.

     Sun Feb 26 12:23:19 2006 >>> sys-auth/nss_ldap-239-r1
       merge time: 1 minute and 44 seconds.

     Tue May 30 18:33:27 2006 >>> sys-auth/nss_ldap-250
       merge time: 40 minutes and 58 seconds.

Howcome the releases after 239 have such ridiculous high merge times?

Edit: Ok that last question answered itself after merging nss_ldap with the debug flag.
It seems it tries to bind to the ldap server before merging.
Back to top
View user's profile Send private message
robbat2
Developer
Developer


Joined: 19 Feb 2003
Posts: 82

PostPosted: Wed May 31, 2006 11:07 pm    Post subject: Reply with quote

Everybody here with problem, if you have a line that starts with 'ssl' in your /etc/ldap.conf, please remove it for using nss_ldap-250!

This was confirmed in bug 134473: https://bugs.gentoo.org/show_bug.cgi?id=134473

If you have long boot times, see: https://bugs.gentoo.org/show_bug.cgi?id=99564
Back to top
View user's profile Send private message
loux.thefuture
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 135

PostPosted: Fri Jun 02, 2006 9:11 pm    Post subject: Reply with quote

Hello,
the lines in /etc/ldap.conf for ssl are :
ssl start_tls
ssl on
is it good ?
loux
PS : why disabling it resolve the trouble ?
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
robbat2
Developer
Developer


Joined: 19 Feb 2003
Posts: 82

PostPosted: Fri Jun 02, 2006 9:59 pm    Post subject: Reply with quote

remove 'ssl on'
and leave only 'ssl start_tls'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum