mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Use HAVE_PW_GECOS when needed.
This commit is contained in:
parent
96b2ae55ac
commit
1676d61130
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user