Skip to content
Snippets Groups Projects
Commit 1676d611 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Use HAVE_PW_GECOS when needed.

parent 96b2ae55
No related branches found
No related tags found
No related merge requests found
......@@ -144,9 +144,11 @@ pw2entry( Backend *be, struct passwd *pw )
attr_merge( e, "cn", vals );
attr_merge( e, "sn", vals );
attr_merge( e, "uid", vals );
#ifdef HAVE_PW_GECOS
val.bv_val = pw->pw_gecos;
val.bv_len = strlen( pw->pw_gecos );
attr_merge( e, "cn", vals );
#endif
val.bv_val = "person";
val.bv_len = strlen( val.bv_val );
attr_merge( e, "objectclass", vals );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment