From 07b134407c611f5e26be79c53b02cb97aa02002c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 9 Feb 2016 09:42:28 +0100 Subject: [PATCH] nss_aix: Hack away WINBINDD_UID_TO_SID To do a proper xids2sids conversion I need a build environment. Everyone who needs this and can build AIX please speak up! Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- nsswitch/winbind_nss_aix.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nsswitch/winbind_nss_aix.c b/nsswitch/winbind_nss_aix.c index 7a847b2344b..c5c223f4758 100644 --- a/nsswitch/winbind_nss_aix.c +++ b/nsswitch/winbind_nss_aix.c @@ -609,6 +609,14 @@ static attrval_t pwd_to_sid(struct passwd *pwd) request.data.uid = pwd->pw_uid; +#if 0 + /* + * Removed because WINBINDD_UID_TO_SID is replaced by + * WINBINDD_XIDS_TO_SIDS. I don't have an AIX build + * environment around, so I did not convert this call. If + * someone stumbles over this, please contact me: + * vl@samba.org, I'll convert this. + */ if (winbindd_request_response(NULL, WINBINDD_UID_TO_SID, &request, &response) != NSS_STATUS_SUCCESS) { @@ -617,6 +625,9 @@ static attrval_t pwd_to_sid(struct passwd *pwd) r.attr_flag = 0; r.attr_un.au_char = strdup(response.data.sid.sid); } +#else + r.attr_flag = ENOENT; +#endif return r; } -- 2.34.1