diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-03-10 10:53:16 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-10 14:52:59 -0400 |
commit | 704cc1c73e17d32fadcf6b57cc6f9246515efb49 (patch) | |
tree | 81ea7ceaceb4d66e16254c656ea2f82962ac3fe3 /server/db/sysdb.h | |
parent | 603e64676bae6640588291289bd9cbc100ee35c6 (diff) | |
download | sssd-704cc1c73e17d32fadcf6b57cc6f9246515efb49.tar.gz sssd-704cc1c73e17d32fadcf6b57cc6f9246515efb49.tar.bz2 sssd-704cc1c73e17d32fadcf6b57cc6f9246515efb49.zip |
Fix returning user with missing optional attributes.
Gecos, homedir and shell are optional, fix the responder not to refuse to return
the user completely if they are missing, replace an empty homedir with "/".
Also fix fullname vs gecos, and always return gecos for NSS data.
On user creation set gecos to the same value as the user Full Name, to help
populate the gecos field with data that makes sense.
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r-- | server/db/sysdb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 50aabac2..9e2cb39d 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -90,7 +90,7 @@ #define SYSDB_CHECK_FILTER "(&(|("SYSDB_UC")("SYSDB_GC"))("SYSDB_NAME"=%s))" #define SYSDB_PW_ATTRS {SYSDB_NAME, SYSDB_UIDNUM, \ - SYSDB_GIDNUM, SYSDB_FULLNAME, \ + SYSDB_GIDNUM, SYSDB_GECOS, \ SYSDB_HOMEDIR, SYSDB_SHELL, \ SYSDB_LAST_UPDATE, \ "objectClass", \ @@ -274,7 +274,7 @@ int sysdb_set_user_attr(struct sysdb_req *sysreq, int sysdb_add_user(struct sysdb_req *sysreq, struct sss_domain_info *domain, const char *name, - uid_t uid, gid_t gid, const char *gecos, + uid_t uid, gid_t gid, const char *fullname, const char *homedir, const char *shell, sysdb_callback_t fn, void *pvt); |