summaryrefslogtreecommitdiff
path: root/server/tools/sss_usermod.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-03-10 10:53:16 -0400
committerSimo Sorce <ssorce@redhat.com>2009-03-10 14:52:59 -0400
commit704cc1c73e17d32fadcf6b57cc6f9246515efb49 (patch)
tree81ea7ceaceb4d66e16254c656ea2f82962ac3fe3 /server/tools/sss_usermod.c
parent603e64676bae6640588291289bd9cbc100ee35c6 (diff)
downloadsssd-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/tools/sss_usermod.c')
-rw-r--r--server/tools/sss_usermod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/sss_usermod.c b/server/tools/sss_usermod.c
index 63779dd1..6f1d4ce6 100644
--- a/server/tools/sss_usermod.c
+++ b/server/tools/sss_usermod.c
@@ -292,7 +292,7 @@ int main(int argc, const char **argv)
if(pc_gecos) {
ret = sysdb_attrs_add_string(user_ctx->attrs,
- SYSDB_FULLNAME,
+ SYSDB_GECOS,
pc_gecos);
VAR_CHECK(ret, EOK, "Could not add attribute to changeset\n");
}