#571 sssd clients do not reconnect after sssd is restarted
Closed: Fixed None Opened 9 years ago by sbose.

Long running programs like gdm cannot reconnect to sssd after sssd is restarted, e.g. after an upgrade.

There is a corresponding report in https://bugzilla.redhat.com/show_bug.cgi?id=607233

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.2.2
owner: somebody => sbose

Fields changed

fixedin: => 1.2.2
resolution: => fixed
status: new => closed

Testing notes: this can be verified by running the following C program

/* License: Public Domain */

#include <sys/types.h>
#include <pwd.h>
#include <stdio.h>

int main(int argc, char **argv)
    while(1) {
        struct passwd *pwd;

        pwd = getpwnam(argv[1]);
        fprintf(stderr, "User [%s] has UID [%d]\n", pwd->pw_name, pwd->pw_uid);

This will do a getpwnam() lookup every five seconds on the user specified in the commandline. Usage:

gcc -o getpwnam.test getpwnam.c
./getpwnam.test <username>

Before this fix, the {{{getpwnam.test}}} function would have crashed with a segfault if the SSSD server was restarted (e.g. with {{{service sssd restart}}}. Now it will properly reconnect to the SSSD with no user-visible error.

Metadata Update from @sbose:
- Issue assigned to sbose
- Issue set to the milestone: SSSD 1.2.2

2 years ago

Login to comment on this ticket.