The Samba-Bugzilla – Attachment 1814 Details for
Bug 3345
Patch to 3.0.20b to add RFC2307 capabilities to winbind
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix a compiler optimisation problem
samba-3.0.21c-rfc2307-3.patch (text/plain), 2.05 KB, created by
Howard Wilkinson
on 2006-03-21 10:49:42 UTC
(
hide
)
Description:
Patch to fix a compiler optimisation problem
Filename:
MIME Type:
Creator:
Howard Wilkinson
Created:
2006-03-21 10:49:42 UTC
Size:
2.05 KB
patch
obsolete
>diff -ruN samba-3.0.21c-save/source/sam/idmap_ad.c samba-3.0.21c/source/sam/idmap_ad.c >--- samba-3.0.21c-save/source/sam/idmap_ad.c 2006-03-21 14:14:41.000000000 +0000 >+++ samba-3.0.21c/source/sam/idmap_ad.c 2006-03-21 16:06:04.000000000 +0000 >@@ -46,8 +46,9 @@ > return True; > } > >+ DEBUG(10,("ad_idmap_check_attr_mapping: checking for rfc2307, sfu\n")); > if (use_nss_info("rfc2307")) { >- >+ DEBUG(10,("ad_idmap_check_attr_mapping: rfc2307 selected\n")); > if (!ads_check_mapping(ads)) { > DEBUG(0,("ad_idmap_check_attr_mapping: failed to check for RFC2307 schema\n")); > return False; >@@ -57,7 +58,7 @@ > attr_gidnumber = SMB_STRDUP(ads->schema.gidnumber_attr); > > } else if (use_nss_info("sfu")) { >- >+ DEBUG(10,("ad_idmap_check_attr_mapping: sfu selected\n")); > if (!ads_check_mapping(ads)) { > DEBUG(0,("ad_idmap_check_attr_mapping: failed to check for SFU schema\n")); > return False; >@@ -67,10 +68,14 @@ > attr_gidnumber = SMB_STRDUP(ads->schema.sfu_gidnumber_attr); > > } else { >+ DEBUG(10,("ad_idmap_check_attr_mapping: nothing selected\n")); > attr_uidnumber = SMB_STRDUP("uidNumber"); > attr_gidnumber = SMB_STRDUP("gidNumber"); > } > >+ DEBUG(10,("ad_idmap_check_attr_mapping: returning uidnumber = %s, gidnumber = %s\n", >+ attr_uidnumber, attr_gidnumber)); >+ > return True; > } > >@@ -256,7 +261,7 @@ > { > ADS_STATUS rc; > NTSTATUS status = NT_STATUS_NONE_MAPPED; >- char *attrs[] = { "sAMAccountType", attr_uidnumber, attr_gidnumber, NULL }; >+ char **attrs; > void *res = NULL; > void *msg = NULL; > char *expr = NULL; >@@ -266,6 +271,12 @@ > int count; > ADS_STRUCT *ads; > >+ attrs = (char**)malloc(sizeof(char*)*4); >+ attrs[0] = "sAMAccountType"; >+ attrs[1] = attr_uidnumber; >+ attrs[2] = attr_gidnumber; >+ attrs[3] = NULL; >+ > if (unid == NULL) { > return NT_STATUS_INVALID_PARAMETER; > } >@@ -282,6 +293,8 @@ > return NT_STATUS_NO_MEMORY; > } > >+ DEBUG(10,("ad_idmap_get_id_from_sid: fetching %s, %s, %s\n", >+ attrs[0], attrs[1], attrs[2])); > rc = ads_search_retry(ads, &res, expr, (const char **)attrs); > free(sidstr); > free(expr);
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 3345
:
1629
|
1762
|
1779
|
1810
|
1811
|
1814
|
1817
|
1845
|
1892