]> git.sur5r.net Git - openldap/commitdiff
Use HAVE_PW_GECOS when needed.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 1999 22:27:46 +0000 (22:27 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 1999 22:27:46 +0000 (22:27 +0000)
servers/slapd/back-passwd/search.c

index 0852a88d1bd7fc5c5b5173478c78e168b9b60bc0..5cccc154fb1e7fde22f1bf303f3fd88e61160496 100644 (file)
@@ -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 );