--- cpu-1.4.3/src/plugins/ldap/ld.c 2004-01-11 23:47:37.000000000 -0500 +++ cpu-1.4.3.new/src/plugins/ldap/ld.c 2006-09-12 08:22:09.000000000 -0400 @@ -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