ea54ad0f60
- New upstream release Includes five upstream patches -bug3010_v1, -groupname_enumeration_v3, -regcreatekey_winxp_v1, -usrmgr_groups_v1, and -winbindd_v1 This obsoletes the -pie and -delim patches the -warning and -gcc4 patches are obsolete too The -man, -passwd, and -smbspool patches were updated to match 3.0.20pre1 Also, the -quoting patch was implemented differently upstream There is now a umount.cifs executable and manpage We run autogen.sh as part of the build phase The testprns command is now gone libsmbclient now has a man page - Include -bug106483 patch to close bz#106483 smbclient: -N negates the provided password, despite documentation - Added the -warnings patch to quiet some compiler warnings. - Removed many obsolete patches from CVS.
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
diff -urN --exclude-from=/misc/src/samba-cvs/diff.excludes samba-3.0.20-orig/source/passdb/pdb_ldap.c samba-3.0.20-new/source/passdb/pdb_ldap.c
|
|
--- samba-3.0.20-orig/source/passdb/pdb_ldap.c 2005-07-28 08:19:48.000000000 -0500
|
|
+++ samba-3.0.20-new/source/passdb/pdb_ldap.c 2005-08-26 14:16:00.000000000 -0500
|
|
@@ -3692,23 +3692,24 @@
|
|
return False;
|
|
}
|
|
|
|
- vals = ldap_get_values(ld, entry, "cn");
|
|
- if ((vals == NULL) || (vals[0] == NULL)) {
|
|
- DEBUG(5, ("\"cn\" not found\n"));
|
|
- return False;
|
|
- }
|
|
- pull_utf8_talloc(mem_ctx,
|
|
- CONST_DISCARD(char **, &result->account_name),
|
|
- vals[0]);
|
|
- ldap_value_free(vals);
|
|
+ /* display name is the NT group name */
|
|
|
|
vals = ldap_get_values(ld, entry, "displayName");
|
|
- if ((vals == NULL) || (vals[0] == NULL))
|
|
+ if ((vals == NULL) || (vals[0] == NULL)) {
|
|
DEBUG(8, ("\"displayName\" not found\n"));
|
|
- else
|
|
- pull_utf8_talloc(mem_ctx,
|
|
- CONST_DISCARD(char **, &result->fullname),
|
|
- vals[0]);
|
|
+
|
|
+ /* fallback to the 'cn' attribute */
|
|
+ vals = ldap_get_values(ld, entry, "cn");
|
|
+ if ((vals == NULL) || (vals[0] == NULL)) {
|
|
+ DEBUG(5, ("\"cn\" not found\n"));
|
|
+ return False;
|
|
+ }
|
|
+ pull_utf8_talloc(mem_ctx, CONST_DISCARD(char **, &result->account_name), vals[0]);
|
|
+ }
|
|
+ else {
|
|
+ pull_utf8_talloc(mem_ctx, CONST_DISCARD(char **, &result->account_name), vals[0]);
|
|
+ }
|
|
+
|
|
ldap_value_free(vals);
|
|
|
|
vals = ldap_get_values(ld, entry, "description");
|