[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



[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 further combinations (e.g. home directory, primary
> group membership, etc.) so far.

How strange.  Any idea which process that fail to work with the PIPE?
It was working for me the last time I tested it, so I wonder what
changed.

> I wonder why the author have specified subprocess.PIPE, since the
> actual output is not captured anywhere in the script?

It was written like that because I am not very familiar with Python
and found a example doing it like that.

Happy hacking,
-- 
Petter Reinholtdsen



Reply to: