mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
r22444: * Validate a SID before trying to convert it to a uid/gid via the public
winbindd interface * Add nss_info/*so files to the RHEL/Fedora packaging (This used to be commit 1787fcb8c1199215fcec74472c727b8c8fbf5473)
This commit is contained in:
parent
821bf2bd72
commit
026852b47a
@ -372,6 +372,7 @@ fi
|
||||
%{_bindir}/eventlogadm
|
||||
|
||||
%{_libdir}/samba/idmap/*.so
|
||||
%{_libdir}/samba/nss_info/*.so
|
||||
%{_libdir}/samba/vfs/*.so
|
||||
%{_libdir}/samba/auth/*.so
|
||||
|
||||
|
@ -199,7 +199,7 @@ static void sid2uid_lookupsid_recv( void *private_data, BOOL success,
|
||||
return;
|
||||
}
|
||||
|
||||
if ( (type!=SID_NAME_USER) || (type!=SID_NAME_COMPUTER) ) {
|
||||
if ( (type!=SID_NAME_USER) && (type!=SID_NAME_COMPUTER) ) {
|
||||
DEBUG(5,("sid2uid_lookupsid_recv: Sid %s is not a user or a computer.\n",
|
||||
state->request.data.sid));
|
||||
request_error(state);
|
||||
@ -276,8 +276,8 @@ static void sid2gid_lookupsid_recv( void *private_data, BOOL success,
|
||||
return;
|
||||
}
|
||||
|
||||
if ( (type!=SID_NAME_DOM_GRP) ||
|
||||
(type!=SID_NAME_ALIAS) ||
|
||||
if ( (type!=SID_NAME_DOM_GRP) &&
|
||||
(type!=SID_NAME_ALIAS) &&
|
||||
(type!=SID_NAME_WKN_GRP) )
|
||||
{
|
||||
DEBUG(5,("sid2gid_lookupsid_recv: Sid %s is not a group.\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user