Is there an existing issue for this?
Environment
Verified on https://demo.phpldapadmin.org/
Also used environment from bug#484- image: phpldapadmin/phpldapadmin:latest container
- LDAP Server: image: vegardit/openldap:latest container
PLA Code
Docker hub
PLA Version
docker phpldapadmin/phpldapadmin:latest (8f17a6415432)
Current Behavior
When creating a Generic: User Account when a posixGroup exists, there is a list of groups to assign to the user. This list does not include any groups that have a posix gidNumber of 0, presumably since phpldapadmin thinks a gidNumber of 0 is invalid.




Expected Behavior
Expected to list all groups, including those with gidNumber = 0.
Steps To Reproduce
- Create the OU
- Create the groups. LDIF as follows:
version: 1
dn: cn=adm,ou=groups,ou=t_ou_1,dc=example,dc=com
cn: adm
gidNumber: 0
objectClass: posixGroup
version: 1
dn: cn=obs,ou=groups,ou=t_ou_1,dc=example,dc=com
cn: obs
gidNumber: 501
objectClass: posixGroup
version: 1
dn: cn=oper,ou=groups,ou=t_ou_1,dc=example,dc=com
cn: oper
gidNumber: 502
objectClass: posixGroup
- Create the new user - Template: Generic: User Account
- Observe that the above 'adm' group does not show up under the GID Number drop down.
Relevant log output
Anything else?
No response
Is there an existing issue for this?
Environment
PLA Code
Docker hub
PLA Version
docker phpldapadmin/phpldapadmin:latest (8f17a6415432)
Current Behavior
When creating a Generic: User Account when a posixGroup exists, there is a list of groups to assign to the user. This list does not include any groups that have a posix gidNumber of 0, presumably since phpldapadmin thinks a gidNumber of 0 is invalid.
Expected Behavior
Expected to list all groups, including those with gidNumber = 0.
Steps To Reproduce
version: 1
dn: cn=adm,ou=groups,ou=t_ou_1,dc=example,dc=com
cn: adm
gidNumber: 0
objectClass: posixGroup
version: 1
dn: cn=obs,ou=groups,ou=t_ou_1,dc=example,dc=com
cn: obs
gidNumber: 501
objectClass: posixGroup
version: 1
dn: cn=oper,ou=groups,ou=t_ou_1,dc=example,dc=com
cn: oper
gidNumber: 502
objectClass: posixGroup
Relevant log output
Anything else?
No response