Skip to content

[Bug]: Groups with gidNumber 0 are not shown when creating a new user #485

Description

@calculoso

Is there an existing issue for this?

  • I have searched the existing issues

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.

Image Image Image Image

Expected Behavior

Expected to list all groups, including those with gidNumber = 0.

Steps To Reproduce

  1. Create the OU
  2. 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

  1. Create the new user - Template: Generic: User Account
  2. Observe that the above 'adm' group does not show up under the GID Number drop down.

Relevant log output

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions