lists.arthurdejong.org
RSS feed

[Patch] Add nss_min_gid threshold for min GIDs

[Date Prev][Date Next] [Thread Prev][Thread Next]

[Patch] Add nss_min_gid threshold for min GIDs



RESTRICTED

Hello,
I would like to contribute to nss-pam-ldapd with a patch that introduces nss_min_gid. This option allows ignoring LDAP users and groups whose numeric GID is lower than a specified threshold.
Currently, there is no mechanism to filter LDAP groups based on a minimum GID value. This can cause issues in environments where certain ID ranges are reserved.

Your project already implements a similar option, nss_min_uid, for user IDs. This patch extends that concept to group IDs for consistency.

Proposed Solution
  • Added a new nss_min_gid parameter in nslcd.conf.
  • Updated cfg.c, cfg.h, group.c, passwd.c, and the documentation (man/nslcd.conf.5.xml).
  • Requests for GIDs below the configured threshold are ignored.
Thank you for reviewing this contribution. Please let me know if any adjustments are needed.
I have attached the patch to this email. This patch was created starting from the last current commit from master branch of nss-pam-ldapd : 8ddb983a546f632986a84a784c4625110f7782a2 
Best regards,

Bertille CHAPUIS
Software Designer


alstom
twitter Linkedin facebook Instagram Youtube
 


CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.

Attachment: add_nss_min_gid_threshold_for_min_gids.patch
Description: add_nss_min_gid_threshold_for_min_gids.patch