[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2015-07-19 Thread Jack O'Quin
I recently experienced this problem on Trusty, and tried several of the
recommended work-arounds, without success until I tried switching to
libnss-ldapd in place of libnss-ldap.

That worked. Now I can successfully reboot my LDAP clients.

Amazing that something so fundamental is still broken several years
later.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2015-01-21 Thread kay
nss_initgroups_ignoreusers with users with id  500 works for me.

** Attachment removed: libnss_ldapd_w_user.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301881/+files/libnss_ldapd_w_user.log

** Attachment removed: libnss_ldapd.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301882/+files/libnss_ldapd.log

** Attachment removed: libnss_ldap.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301876/+files/libnss_ldap.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2015-01-19 Thread kay
** Attachment added: libnss_ldapd.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301882/+files/libnss_ldapd.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2015-01-19 Thread kay
** Attachment added: libnss_ldapd.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301880/+files/libnss_ldapd.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2015-01-19 Thread kay
libnss-ldapd doesn't work if user doesn't exist in the system.
once user is created - ssh authentication works fine.

Here are ssh debug logs for: libnss-ldap, libnss-ldapd wo user, and
libnss-ldapd w user

** Attachment added: libnss_ldap.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301876/+files/libnss_ldap.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2015-01-19 Thread kay
** Attachment added: libnss_ldapd_w_user.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301881/+files/libnss_ldapd_w_user.log

** Attachment removed: libnss_ldapd.log
   
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+attachment/4301880/+files/libnss_ldapd.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2015-01-12 Thread Thomas Werschlein
Solution #14 did work for us on Ubuntu 14.04 LTS. We were copying over
/etc/ldap.conf via config mgmt for years now. Pretty big impact for a
missing newline at the end of a file ... Thanks a lot for pointing out,
Graham!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-12-22 Thread Eric
Dang!  this is not a little thing!  How does one get some attention on this 
issue? What does it take to get this bug fixed? Anyone? -
This has and is causing me countless hours.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-12-22 Thread Eric
OK, so it appears that libnss-ldapd also works for me.  (looks more like
RH anyway).

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-11-27 Thread Claudio Kuenzler
I ran into this issue today and I'm very surprised this issue is that
old. This bug makes Ubuntu as an LDAP client unusable.

#17 did help for faster booting of the machine, but that's it. Any
command is still so slow, the machine is useless.

#2 tried it like this:
- Adapted init script /etc/init.d/libnss-ldap like mentioned
- created /etc/nsswitch.conf.local which does NOT contain ldap 
- created /etc/nsswitch.conf.ldap which does contain ldap 
This again works for a very fast boot, but once libnss-ldap is started (and 
therefore the ldap version of nsswitch.conf becomes active), the system is 
bloody slow again.

#1 works to regain a normal system with local logins but ldap logins
still time out.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-11-27 Thread Björn K .
I ran into this issue several month ago. I tried every workaround I could find, 
but nothing worked.
The debian documentation already warns that libnss-ldap has been orphaned. This 
means that it does not have a real maintainer at the moment.
They suggest to use the alternative package libnss-ldapd. I tried it and all 
problems are gone now.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-11-24 Thread Lumen
#1 worked for me, but now I have to set the groups manually which kind of 
defeats the purpose (fortunately they don't change much).
#17 did not work.
I also tested libpam-ldap on a ubuntu server (static ip, no network-manager) 
without having any problems, 
so the timing of the upcoming network connection could be the source of the  
problem.
This bug was reported 1 1/2 years ago and and it is still broken, not even 
assigned to anyone...so abysmal.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-09-25 Thread Giuseppe Attardi
I had a similar problem after an release upgrade from 12.04.3 to
14.04.1.

After the upgrade, only local users could log in and any command was very 
slooow.
In particular commands like add-user or add-group would never finish.

Removing mentions of ldap in nsswitch.conf seemed to solve the problem.

In the end I discovered that the apparent cause was removing this line
from nsswitch:

passwd_compat: ldap

and using instead

passwd: compat ldap

After this change, everything worked normally.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-09-17 Thread Anaxim
Hi,

I lost more than 4 hours on this issue and found a solution. I hope it
could help others.

Got the issue on a brand new 14.04.1 installation. Modification of the
libnss-ldap (#2) script didn't solve the issue.

I found a solution on following the page : 
http://backdrift.org/how-to-get-pam-ldap-local-logins-to-work-when-networking-is-down
 and changed /etc/ldap.conf file and add following lines before 
nss_initgroups_ignoreusers:
nss_reconnect_tries 2
nss_reconnect_sleeptime 1
nss_reconnect_maxsleeptime 1
nss_reconnect_maxconntries 1

After this modification the system was able to boot normally and I could
directly log in with ldap user.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-09-11 Thread Jcat-l
At some point, this started working again after a dist-upgrade, so
nss_initgroups_ignoreusers is working for me.

The only thing I've done on top of that for house keeping purposes, is
to modify the init script to remove the ignoreusers line on system start
(the configs are controlled vi puppet, and the file will keep changing
otherwise).

For anyone else with a similar issue, I'm using this:

~~
#! /bin/sh -e

### BEGIN INIT INFO
# Provides:  libnss-ldap
# Required-Start:
# Required-Stop: mountall.sh
# Default-Start: 2 3 4 5
# Default-Stop:  0 1 6
# Short-Description: Updates /etc/ldap.conf
# Description:   Updates nss_initgroups_ignoreusers based on
#nss_initgroups_minimum_uid
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions

case $1 in
start)
log_action_begin_msg Removing nssldap-update-ignoreusers 
changes
if sed -i /^nss_initgroups_ignoreusers/d /etc/ldap.conf ; then
log_action_end_msg 0
else
log_action_end_msg 1
exit 1
fi
;;
restart|force-reload|stop)
log_action_begin_msg Running nssldap-update-ignoreusers
if nssldap-update-ignoreusers ; then
log_action_end_msg 0
else
log_action_end_msg 1
exit 1
fi
;;
*)
echo Usage: $0 {start|restart|force-reload|stop}
exit 1
;;
esac
exit 0
~~

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-09-10 Thread aaron jonen
I also tried fix #2 .  I had to create my own files for :

   /etc/nsswitch.conf.ldap
  /etc/nsswitch.conf.local

I assume the ldap file contains the ldap and the .local files does not.

The fix did not work for me.
Please post the above files and the full working script for 
/etc/init.d/libnss-ldap.

Till then i just won't reboot. :)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-09-09 Thread Graham Eames
Having recently run into this and spent some time debugging it would
appear that one potential cause is if you have edited /etc/ldap.conf and
do not have a new line at the end of the file (so in our case copying a
standard config in as part of a deployment script)

When the libnss-ldap init script is run on shutdown it updates ldap.conf
with the nss_initgroups_ignoreusers directive, but appends it to the end
of the last line in the file rather than putting it on a new line

As such the last line which did read

ldap_version 3

ended up reading

ldap_version 3nss_initgroups_ignoreusers.

rather than

ldap_version 3
nss_initgroups_ignoreusers..

By ensuring we have a new line character at the end of the config file,
when the init script runs we end up with the correct content in the file
and the boot completes as expected rather than hanging

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-07-07 Thread husein
the workarund in #2 isnt working for me. but im not sure if i did the
right:


#! /bin/sh -e

### BEGIN INIT INFO
# Provides:  libnss-ldap
# Required-Start:
# Required-Stop: mountall.sh
# Default-Start:
# Default-Stop:  0 1 6
# Short-Description: Updates /etc/ldap.conf
# Description:   Updates nss_initgroups_ignoreusers based on
#nss_initgroups_minimum_uid
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions


#case $1 in
#   start)
#   ;;
#   restart|force-reload|stop)
#   log_action_begin_msg Running nssldap-update-ignoreusers
#   if nssldap-update-ignoreusers ; then
#   log_action_end_msg 0
#   else
#   log_action_end_msg 1
#   exit 1
#   fi
#   ;;
#   *)
#   echo Usage: $0 {start|restart|force-reload|stop}
#   exit 1
#   ;;

case $1 in
start)
cp -f /etc/nsswitch.conf.ldap /etc/nsswitch.conf
;;
stop)
cp -f /etc/nsswitch.conf.local /etc/nsswitch.conf
;;


esac
exit 0


Right? Please correct met!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-07-04 Thread Ben Brown
Yep, sad to say this is still happening, 2 years later. Brand new
install of 14.04 LTS goes into high cpu usage during boot and you never
make it to a usable login prompt with LDAP enabled. Tried setting the
LDAP URI to localhost, LAN IP and it's FQDN, no effect.

Luckily, the workaround posted in #2 worked for me and I'm up and
running... at least until the script is replaced in a future update.

Kludgy perhaps, but better than nothing.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-07-03 Thread husein
hello i have a similar problem. im booting fatclients (ltsp). after
configuring the ldap client (installing libnss ldap) and adding the
paramater ldap to nsswitch.conf, the fatclient doesnt boot! if i
removeing ldap all works fine, but this is no solution for me!

by the way, the same configuration works for my thinclients!

I hope you can help!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-04-25 Thread Jcat-l
This is still an issue on 14.04 LTS.

This was fixed ages ago with this change:

libnss-ldap (251-5.2) unstable; urgency=high

  * Change the init script policy. Instead of stopping libnss-ldap.init on
clean shutdown (touching a file) and starting it after networking (rm-ing
it), we touch the file in /lib/init/rw as soon as possible (right before
udev is started, touching a file) and stop it after initial system bootup.
This fixes both issues with /var being on a separate partition, and
unclean shutdown where the file would not be created. (To make sure we
don't get similar problems during shutdown, we create it in runlevels 0
and 6 as before, but we don't assume it's still there when we boot, since
it's on a tmpfs now.) (Closes: #375077)

..but at some point got removed with this change:

libnss-ldap (259-1) unstable; urgency=low

  * Remove old kluge /etc/init.d/libnss-ldap


Not totally sure what was supposed to be replacing that kluge, maybe it was 
the nss_initgroups_ignoreusers thing, but it's not working currently, that's 
for sure.
Boot time is well over 2 mins atm, verses about 5 seconds with the ldap entry 
removed for groups in nsswitch.conf

Someone must have some ideas for this.


Cheers,
jcat

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2014-01-30 Thread Eric Martel
Got bit by this, too; however, in my case it's adding ldap to the
hosts line that got me into trouble.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2013-02-14 Thread Craig Yoshioka
seriously?  6 months and this isn't fixed?  I just got bit by this after
upgrading and rebooting my LDAP server!  Imagine the panic that set in
at first.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2012-08-09 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: libnss-ldap (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2012-07-19 Thread Robie Basak
I'm a bit confused.

If you're using Network Manager, then you can only expect to get a
working network after login, right? But if you want to use LDAP to
authenticate the login, how is this going to work before the network is
brought up?

** Changed in: libnss-ldap (Ubuntu)
   Status: Incomplete = New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2012-07-19 Thread ghomem
Hi,

We are using the Ubuntu's default network configuration, nothing done
manually on /etc/interfaces.

It does bring the network up before login and works perfectly with
nss_winbind.

So the problem is likely the integration of nss_ldap on Ubuntu and not
the network configuration.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2012-07-17 Thread ghomem
Hello Clint,

We are using the default for networking, ie, Network Manager.

Booting with  --verbose noquiet results in the single 2 lines:

Loading configuration from /etc/init.conf
Loading configuration fomt /etc/init

being printed.

The system hangs right there.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2012-07-14 Thread Clint Byrum
Hi gustavo, thanks for taking the time to file this bug report.

Network interfaces have two modes. One is /etc/network/interfaces, and
the other is NetworkManager. Which are you using? The former will bring
up any interfaces as soon as udev detects them. It will also do a
blanket bring up of any interfaces that aren't udev detected (like
bridges and bonded interfaces) after udevtrigger finishes.

The latter starts later, and is my dynamic about interfaces.

Anyway, can you try booting with '--verbose noquiet' added to the kernel
command line so we can see the messages being printed out. This should
give an idea of what upstart jobs and services are being started that
might be blocking the rest of the boot.

** Changed in: libnss-ldap (Ubuntu)
   Status: New = Incomplete

** Changed in: libnss-ldap (Ubuntu)
   Importance: Undecided = High

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2012-07-13 Thread ghomem
Further debug indicates that this is a group resolution problem at boot
time because

passwd: compat ldap
group: compat 
shadow: compat ldap

boots perfectly.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1024475] Re: libnss-ldap causes boot hang on Ubuntu 12.04 Precise

2012-07-13 Thread ghomem
Current workaround is changing the existing script /etc/init.d/libnss-
ldap to include:

[...]

case $1 in
start)
cp -f /etc/nsswitch.conf.ldap /etc/nsswitch.conf
;;
stop)
cp -f /etc/nsswitch.conf.local /etc/nsswitch.conf
;;

[...]

This will get you nss ldap working and no problems during reboot.

It's funny that this script is there to be used.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1024475

Title:
  libnss-ldap causes boot hang on Ubuntu 12.04 Precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-ldap/+bug/1024475/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs