From 704cc1c73e17d32fadcf6b57cc6f9246515efb49 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 10 Mar 2009 10:53:16 -0400 Subject: 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. --- server/tools/sss_usermod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/tools/sss_usermod.c') 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"); } -- cgit