diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-02-11 11:47:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-02-13 10:40:37 +0100 |
commit | e7f7ed8bf6281ef01aca53ea44acdd4af4c51aa7 (patch) | |
tree | cdebb608e87e1679b711f6ffb2c363b94fb923ae | |
parent | f14e4d4e54f424c05147cb0e635c9b8930270262 (diff) | |
download | samba-e7f7ed8bf6281ef01aca53ea44acdd4af4c51aa7.tar.gz samba-e7f7ed8bf6281ef01aca53ea44acdd4af4c51aa7.tar.bz2 samba-e7f7ed8bf6281ef01aca53ea44acdd4af4c51aa7.zip |
s3:auth: only create_local_token() should add S-1-22-X-Y sids
metze
-rw-r--r-- | source3/auth/auth_util.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 05ab45da49..1f00e22a3c 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -572,9 +572,6 @@ NTSTATUS make_server_info_sam(auth_serversupplied_info **server_info, struct passwd *pwd; gid_t *gids; auth_serversupplied_info *result; - int i; - size_t num_gids; - DOM_SID unix_group_sid; const char *username = pdb_get_username(sampass); NTSTATUS status; @@ -646,30 +643,6 @@ NTSTATUS make_server_info_sam(auth_serversupplied_info **server_info, } } - /* Add the "Unix Group" SID for each gid to catch mapped groups - and their Unix equivalent. This is to solve the backwards - compatibility problem of 'valid users = +ntadmin' where - ntadmin has been paired with "Domain Admins" in the group - mapping table. Otherwise smb.conf would need to be changed - to 'valid user = "Domain Admins"'. --jerry */ - - num_gids = result->num_sids; - for ( i=0; i<num_gids; i++ ) { - if ( !gid_to_unix_groups_sid( gids[i], &unix_group_sid ) ) { - DEBUG(1,("make_server_info_sam: Failed to create SID " - "for gid %d!\n", gids[i])); - continue; - } - status = add_sid_to_array_unique(result, &unix_group_sid, - &result->sids, - &result->num_sids); - if (!NT_STATUS_IS_OK(status)) { - result->sam_account = NULL; /* Don't free on error exit. */ - TALLOC_FREE(result); - return status; - } - } - /* For now we throw away the gids and convert via sid_to_gid * later. This needs fixing, but I'd like to get the code straight and * simple first. */ |