return -10;
if (gid != NULL)
{
gid = ldap_get_values (ld, pos, gid)[0];
gid = ldap_get_values (ld, pos, gid);
return atoi (gid);
else