The Samba-Bugzilla – Attachment 799 Details for
Bug 1076
Exchange 5.5 SP4 installation fails using Samba DC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow lookup of domain-sid
samba3-lookup-domain-sid_v2.diff (text/plain), 1.71 KB, created by
Guenther Deschner
on 2004-11-19 06:27:37 UTC
(
hide
)
Description:
Allow lookup of domain-sid
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2004-11-19 06:27:37 UTC
Size:
1.71 KB
patch
obsolete
>Index: rpc_server/srv_lsa_nt.c >=================================================================== >--- rpc_server/srv_lsa_nt.c (revision 3870) >+++ rpc_server/srv_lsa_nt.c (working copy) >@@ -281,8 +281,8 @@ > } > dom_idx = init_dom_ref(ref, dom_name, &find_sid); > >- DEBUG(10,("init_lsa_trans_names: added user '%s\\%s' to " >- "referenced list.\n", dom_name, name )); >+ DEBUG(10,("init_lsa_trans_names: added %s '%s\\%s' (%d) to referenced list.\n", >+ sid_type_lookup(sid_name_use), dom_name, name, sid_name_use )); > > } > >Index: passdb/lookup_sid.c >=================================================================== >--- passdb/lookup_sid.c (revision 3870) >+++ passdb/lookup_sid.c (working copy) >@@ -76,6 +76,13 @@ > /* Check if this is our own sid. This should perhaps be done by > winbind? For the moment handle it here. */ > >+ if (sid->num_auths == 4 && sid_equal(get_global_sam_sid(), sid)) { >+ DOM_SID tmp_sid; >+ sid_copy(&tmp_sid, sid); >+ return map_domain_sid_to_name(&tmp_sid, dom_name) && >+ local_lookup_sid(sid, name, name_type); >+ } >+ > if (sid->num_auths == 5) { > DOM_SID tmp_sid; > uint32 rid; >Index: passdb/passdb.c >=================================================================== >--- passdb/passdb.c (revision 3870) >+++ passdb/passdb.c (working copy) >@@ -742,6 +742,14 @@ > GROUP_MAP map; > BOOL ret; > >+ if (sid_equal(get_global_sam_sid(), sid)) { >+ *psid_name_use = SID_NAME_DOMAIN; >+ fstrcpy(name, ""); >+ DEBUG(5,("local_lookup_sid: SID is our own domain-sid: %s.\n", >+ sid_string_static(sid))); >+ return True; >+ } >+ > if (!sid_peek_check_rid(get_global_sam_sid(), sid, &rid)){ > DEBUG(0,("local_lookup_sid: sid_peek_check_rid return False! SID: %s\n", > sid_string_static(&map.sid)));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1076
:
432
|
774
| 799