From 1676d61130cf9888a771e910433ab61a512d89b2 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 17 Mar 1999 22:27:46 +0000 Subject: [PATCH] Use HAVE_PW_GECOS when needed. --- servers/slapd/back-passwd/search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-passwd/search.c b/servers/slapd/back-passwd/search.c index 0852a88d1b..5cccc154fb 100644 --- a/servers/slapd/back-passwd/search.c +++ b/servers/slapd/back-passwd/search.c @@ -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 ); -- 2.39.5