Finding Group Name from Ldap GID
I have this issue, I'm have a user selected in LDAP through ldap search, giving only the attribute of gid.

        $ldapattributes = array("gidnumber");
        $ldapdn = "o=example";
        $ldapfilter = "(sn=".$ldapuname."*)";
        $ldapbind = ldap_bind($ldapconn, $ldapuname, $ldappass) or trigger_error('Could not bind to '.$ldaphost);
        $sr = ldap_search($ldapconn,$ldapbasedn,$ldapfilter,$ldapattributes);
        var_dump($sr);
        $entry = ldap_get_entries($ldapconn, $sr);
        var_dump($entry);

the result i get from the vardump is:

> 'gidnumber' => 
>         array
>           'count' => int 1
>           0 => string '1617' (length=4)

I know 1617 is the number that maps correctly to the group I want to, but, I'd like the text that's attributed to it elsewhere that says it's 'ConfSer'. I haven't been able to discover where this is, or how I could turn the gid into another filter to acquire the name and information of that particular group.
Finding Group Name from Ldap GID
===

I have this issue, I'm have a user selected in LDAP through ldap search, giving only the attribute of gid.

        $ldapattributes = array("gidnumber");
        $ldapdn = "o=example";
        $ldapfilter = "(sn=".$ldapuname."*)";
        $ldapbind = ldap_bind($ldapconn, $ldapuname, $ldappass) or trigger_error('Could not bind to '.$ldaphost);
        $sr = ldap_search($ldapconn,$ldapbasedn,$ldapfilter,$ldapattributes);
        var_dump($sr);
        $entry = ldap_get_entries($ldapconn, $sr);
        var_dump($entry);

the result i get from the vardump is:

> 'gidnumber' => 
>         array
>           'count' => int 1
>           0 => string '1617' (length=4)

I know 1617 is the number that maps correctly to the group I want to, but, I'd like the text that's attributed to it elsewhere that says it's 'ConfSer'. I haven't been able to discover where this is, or how I could turn the gid into another filter to acquire the name and information of that particular group.