diff -Nru cpu-1.4.3.orig/src/plugins/ldap/ld.c cpu-1.4.3/src/plugins/ldap/ld.c --- cpu-1.4.3.orig/src/plugins/ldap/ld.c 2004-01-12 05:47:37.000000000 +0100 +++ cpu-1.4.3/src/plugins/ldap/ld.c 2008-04-02 02:43:29.000000000 +0200 @@ -803,7 +803,7 @@ return -10; if (gid != NULL) { - gid = ldap_get_values (ld, pos, gid)[0]; + gid = ldap_get_values (ld, pos, gid); if (gid != NULL) return atoi (gid); else