diff -r c47e081b6c0f -r 66442f81f823 src/server/daemon/ldap_auth.c --- a/src/server/daemon/ldap_auth.c Thu May 09 19:41:11 2013 +0200 +++ b/src/server/daemon/ldap_auth.c Sat May 11 13:28:26 2013 +0200 @@ -91,12 +91,16 @@ LDAPMessage *msg = ldap_first_entry(ld, result); if (msg) { - LDAPUser *user = malloc(sizeof (LDAPUser)); + LDAPUser *user = malloc(sizeof(LDAPUser)); if (user != NULL) { user->user.verify_password = ldap_user_verify_password; user->user.check_group = ldap_user_check_group; user->user.free = ldap_user_free; user->user.name = username; // must not be freed + + // TODO: get uid/gid from ldap + user->user.uid = -1; + user->user.gid = -1; user->ldap = ld; user->userdn = ldap_get_dn(ld, msg);