diff options
author | Björn Jacke <bj@sernet.de> | 2018-12-21 02:20:00 +0100 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2018-12-22 03:11:13 +0100 |
commit | b9496ddb39e685d1f742c26ba390d26f5a3eabfb (patch) | |
tree | 7bb8aee57dd1d9b5556ca6d0228b0e2afdb501bd | |
parent | 42dde0bdd3af8aaa6350fec36fb99b98ab501aa1 (diff) | |
download | samba-b9496ddb39e685d1f742c26ba390d26f5a3eabfb.tar.gz |
winbind_nss_aix: support also S_GROUPSIDS
which is used by lsuser up to AIX 5.2, see also https://bugzilla.samba.org/show_bug.cgi?id=5157
Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | nsswitch/winbind_nss_aix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/winbind_nss_aix.c b/nsswitch/winbind_nss_aix.c index dc44db40ef9..943a1973ef3 100644 --- a/nsswitch/winbind_nss_aix.c +++ b/nsswitch/winbind_nss_aix.c @@ -672,6 +672,8 @@ static int wb_aix_user_attrib(const char *key, char *attributes[], results[i] = pwd_to_group(pwd); } else if (strcmp(attributes[i], S_GROUPS) == 0) { results[i] = pwd_to_groupsids(pwd); + } else if (strcmp(attributes[i], S_GROUPSIDS) == 0) { + results[i] = pwd_to_groupsids(pwd); } else if (strcmp(attributes[i], "SID") == 0) { results[i] = pwd_to_sid(pwd); } else { @@ -803,6 +805,7 @@ static attrlist_t **wb_aix_attrlist(void) {S_SHELL, AL_USERATTR, SEC_CHAR}, {S_PGRP, AL_USERATTR, SEC_CHAR}, {S_GROUPS, AL_USERATTR, SEC_LIST}, + {S_GROUPSIDS, AL_USERATTR, SEC_LIST}, {"SID", AL_USERATTR, SEC_CHAR}, /* group attributes */ |