Displaying 4 results from an estimated 4 matches for "getpwuid_alloc".
2022 Nov 25
1
samba-gpupdate nsswitch error
...krb.
after a bunch of testing with David Mulder, recommendation was to create
a bug report: https://bugzilla.samba.org/show_bug.cgi?id=15225
What other troubleshooting steps / logging can I do to try and track
down the issue.
> source3/auth/token_util.c:562
>
> ??????????????? pass = getpwuid_alloc(tmp_ctx, uid);
> and pass is null
>
> This is the error in the log:
> ? /usr/sbin/samba-gpupdate: add_local_groups: SID
> S-1-5-21-33300784-995546578-3414580312-1107 -> getpwuid(2001107)
> failed, is nsswitch configured?
>
> root at fs1:~/samba.git# wbinfo -s
> S-1-...
2019 Feb 26
1
AD-DC samba_gpoupdate failing
...at the cause is a call to
> getpwuid(uid) with the uid being that of the domain controller.
> "wbinfo --uid-info=3000074" works and returns information, but this
> library function fails.
> This is then propagated upwards as a memory error, because it is being
> called from getpwuid_alloc() which is a talloc variant. the api
> doesn't allow us to distinguish either form of error.
> Later, there is this code (in libgpo)
> new_token = create_local_nt_token(mem_ctx, &object_sid, false,
> num_token_sids, token_sids);
> ADS_ERROR_HAVE_NO_MEMORY(new_token);
> w...
2019 Feb 25
2
AD-DC samba_gpoupdate failing
Well, I had a look at the python bindings and the error handling was in
shambles.
I fixed libgpo/pygpo.c and I now get:
gpos = ads.get_gpo_list(creds.get_username())
SystemError: Failed to get machine token for 'DC01$' (CN=DC01,OU=Domain
Controllers,DC=rvx,DC=is)
(the failing call is status = gp_get_machine_token(self->ads_ptr, frame,
dn,
2019 Feb 26
0
AD-DC samba_gpoupdate failing
...nalyzed this and found that the cause is a call to getpwuid(uid)
with the uid being that of the domain controller.
"wbinfo --uid-info=3000074" works and returns information, but this library
function fails.
This is then propagated upwards as a memory error, because it is being
called from getpwuid_alloc() which is a talloc variant. the api doesn't
allow us to distinguish either form of error.
Later, there is this code (in libgpo)
new_token = create_local_nt_token(mem_ctx, &object_sid, false,
num_token_sids, token_sids);
ADS_ERROR_HAVE_NO_MEMORY(new_token);
where the failure of create_loc...