Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-08-02 Thread Holger Levsen
Hi, Is 634829 also relevant in our default configuration? (Whether or not it is I think the fix should be pushed to squeeze. But if it is we probably want to include the fix in beta1.) cheers, Holger -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-08-02 Thread Petter Reinholdtsen
[Holger Levsen] Hi, Is 634829 also relevant in our default configuration? (Whether or not it is I think the fix should be pushed to squeeze. But if it is we probably want to include the fix in beta1.) I did not test, so I do not know. I do not have a test bed ready, and no spare time to

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-26 Thread Wolfgang Schulze-Zachau
Hi Petter, the script fails at the very first Popen call. If I replace proc = subprocess.Popen(cmd, shell-True, stdout=subprocess.PIPE,) with proc = subprocess.Popen(cmd, shell-True, stdout=None,) the call succeeds. If the user has a local account, login succeeds, too. I haven't tested any

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-26 Thread Wolfgang Schulze-Zachau
Could this be connected to a known (and fixed) race condition in python? See here: http://bugs.python.org/issue1731717 On 25/07/11 18:00, Petter Reinholdtsen wrote: [Wolfgang Schulze-Zachau] Hi Petter, nope, doesn't make any difference, I still get the Unexpected exception, should never

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-26 Thread Petter Reinholdtsen
[Wolfgang Schulze-Zachau] Hi Petter, the script fails at the very first Popen call. If I replace proc = subprocess.Popen(cmd, shell-True, stdout=subprocess.PIPE,) with proc = subprocess.Popen(cmd, shell-True, stdout=None,) the call succeeds. If the user has a local account, login

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-26 Thread Wolfgang Schulze-Zachau
On 26/07/11 11:30, Petter Reinholdtsen wrote: It was written like that because I am not very familiar with Python and found a example doing it like that. To be honest, I am not particularly good friends with python, either. Would it be unfair to say we should take the route of least

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-26 Thread Petter Reinholdtsen
[Wolfgang Schulze-Zachau] Would it be unfair to say we should take the route of least resistance? I have no problem with your proposed change, so why not. Can you test the new version currently available from svn://svn.debian.org/svn/debian-edu/trunk/src/libpam-mklocaluser ? If it works

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-26 Thread Wolfgang Schulze-Zachau
Attached is a modified version of the python script which works for me. Essentially I have added some poll() calls to ensure the shell commands are completed before communicating with the subprocesses. I have also added two lines in the runcmd subroutine to log any error messages to syslog. Hope

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-26 Thread Petter Reinholdtsen
[Wolfgang Schulze-Zachau] Attached is a modified version of the python script which works for me. Essentially I have added some poll() calls to ensure the shell commands are completed before communicating with the subprocesses. Right. Make sense. I have also added two lines in the runcmd

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-25 Thread Petter Reinholdtsen
[Wolfgang Schulze-Zachau] Hi Petter, nope, doesn't make any difference, I still get the Unexpected exception, should never happen ... message. Hm. Not quite sure how to figure out what is missing a child. Could you try to add log/print statements to try to figure out what is failing? I

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-25 Thread Wolfgang Schulze-Zachau
Hi Petter, nope, doesn't make any difference, I still get the Unexpected exception, should never happen ... message. I have stopped nscd, no difference. And nslcd isn't installed (do I need it other than for caching?). Puzzled... On 23/07/11 10:42, Petter Reinholdtsen wrote: [Wolfgang

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-23 Thread Petter Reinholdtsen
[Wolfgang Schulze-Zachau] Jul 20 11:22:49 it-50 pam_mklocaluser[1765]: Unexpected exception, should never happen: [Errno 10] No child processes This is the key error report. Not quite sure which child process is the problem. Hm, is nscd installed? Perhaps the problem is the call

Bug#634829: libpam-mklocaluser: login fails when used in conjunction with sssd

2011-07-20 Thread Wolfgang Schulze-Zachau
Package: libpam-mklocaluser Version: 0.6 Severity: important I am using sssd to authenticate against a Microsoft AD server. The pam configuration was created using pam-auth-update, i.e. it is completely system generated. When authenticating at the initial gdm login prompt, the login fails, and