1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

16908 Commits

Author SHA1 Message Date
Andrew Bartlett
f16ed2616a r2865: Add static and remove unused functions that only cload the blame-game
in finding out who is causing the massive performance problems with
large LDAP directories.

Andrew Bartlett
2007-10-10 10:52:55 -05:00
Günther Deschner
ab875d3ecf r2852: Oh. Allow to migrate win2k3/xp-drivers as well.
Thanks to Bjoern Jacke for his moral support :)

Guenther
2007-10-10 10:52:55 -05:00
Günther Deschner
5181c1b219 r2837: Fix printer-migration w.r.t. to new naming-convention for
policy-handles. Also remove some unused vars.

Guenther
2007-10-10 10:52:55 -05:00
Tim Potter
7f161702fa r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of
'..' from all #include preprocessor commands.   This fixes bugzilla #1880
where OpenVMS gets confused about the '.' characters.
2007-10-10 10:52:55 -05:00
Tim Potter
588de0d4a8 r2834: Netapps can return NT_STATUS_ACCESS_DENIED when trying to return the
security descriptor for a file.  Return an error in this case instead
of panicing trying to unpack a zero length buffer.  Found by Brett
Funderburg.
2007-10-10 10:52:54 -05:00
Günther Deschner
8836621694 r2832: Readd WKGUID-binding to match the correct default-locations of new
User-, Group- and Machine-Accounts in Active Directory (this got lost
during the last trunk-merge).

This way we match e.g. default containers moved by redircmp.exe and
redirusr.exe in Windows 2003 and don't blindly default to cn=Users or
cn=Computers.

Further wkguids can be examied via "net ads search wellknownobjects=*".
This should still keep a samba3-client joining a samba4 dc. Fixes
Bugzilla #1343.

Guenther
2007-10-10 10:52:54 -05:00
Tim Potter
b157a1b7c3 r2828: Fix for bugzilla #1864 from Brett again.
Add sd->type field to security descriptor Python representation.
2007-10-10 10:52:54 -05:00
Jelmer Vernooij
a48b3b291c r2826: Complain if 'password chat' doesn't contain the %u variable. based on a patch by Ronan Waide 2007-10-10 10:52:54 -05:00
Andrew Tridgell
4ce0505bc3 r2824: restored the is_case_sensitive option to ms_fnmatch() in Samba3. It is
very rarely used, but we sohuldn't be removing a feature in a minor
release of this kind.
2007-10-10 10:52:54 -05:00
Tim Potter
fa3e836564 r2823: Patch from Brett Funderburg to pass create options parameter to
nt_create_andx() function.
2007-10-10 10:52:54 -05:00
Tim Potter
30ae13cb9f r2822: Fix parameter confusion in priming of name-to-sid cache. Found by
Qiao Yang.
2007-10-10 10:52:53 -05:00
Günther Deschner
cc5892f041 r2821: Adding "Windows x64" as architecture string and driverdir "x64" for the
64bit AMD platform.

(This used to be "Windows AMD64" and "AMD64" in one of the release
candidates of SP2 for Windows XP. AMD64 is obviously still supported but
not documented.)

Guenther
2007-10-10 10:52:53 -05:00
Günther Deschner
a4b47e7147 r2819: Make 'password history'-behaviour in ldapsam more consistent.
Currently we cannot store more then 15 password history entries (windows
NT4 allows to store 24) in ldapsam. When choosing more then "15" with
pdbedit -P "password history", we fail to initialize the password
history upon password change and overwrite the history, effectively
using a password history of "1". We do already decrease any
history-policy larger then 15 to 15 while storing the password history
list attribute in ldap.

Guenther
2007-10-10 10:52:53 -05:00
Rafal Szczesniak
7fa94c3895 r2814: Exactly the same as "main" build fix.
rafal
2007-10-10 10:52:53 -05:00
Rafal Szczesniak
982912f0c8 r2813: Fix the build.
At least temporarily, since I've got the impression that _real_ fix
is more complex...

rafal
2007-10-10 10:52:53 -05:00
Andrew Bartlett
83dadcd089 r2779: Some fixes to pam_winbind.c.:
Allow 'require_membership_of' and 'require-membership-of'.

Really use a different struct for the SID->Name lookup.

Andrew Bartlett
2007-10-10 10:52:52 -05:00
Andrew Tridgell
38144f8d2c r2778: merged the new samba4 ms_fnmatch code to Samba3. Thanks to Rusty
Russel for some help in designing the new algorithm.
2007-10-10 10:52:52 -05:00
Günther Deschner
d036837729 r2772: Check correct string length when verifying password-policies. Do not
allow e.g. two umlauts and one ascii char to comply with account-policy
"min password length" of 5.

Thanks to Uwe Morgenroth from CC Compunet and Volker.

TODO: we do check the length against AP_MIN_PASSWORD_LEN *and*
lp_min_passwd_length() - both can have differing values.
2007-10-10 10:52:52 -05:00
Günther Deschner
6d9f77c2bb r2771: Second (and last) part of Swat-i18n-Patch from Björn Jacke
<bjacke@sernet.de>

"Do not use display charset for swat output. In HTML we do not care
about the "locale charmap" because HTML code is UTF-8 only now.
Additionally take care that we convert files from statuspage from unix
charset to UTF-8. Thus we have correct HTML output under all
circumstances. We now also convert the share names correctly from unix
encoding to web encoding and vice vera.  "

Guenther
2007-10-10 10:52:52 -05:00
Gerald Carter
316302ca4a r2770: oops; internal_resolve_name() should stay static in 3.0 2007-10-10 10:52:52 -05:00
Gerald Carter
57db8ca91f r2768: BUG 1519: save the hostname used in the open_printer_ex() for later reuse when filling in the spolss replies (also gets rid of get_called_name() 2007-10-10 10:52:52 -05:00
Andrew Bartlett
4bf0b94011 r2762: Remove silly conversion to and from UTF8 on the winbind pipe. Fix the
naming of the require_membership_of parameter in pam_winbind and fix
the error code for 'you didn't specify a domain' in ntlm_auth.

Andrew Bartlett
2007-10-10 10:52:51 -05:00
Andrew Bartlett
1833d0ab72 r2761: Print the decrypted, not encrypted key.
Andrew Bartlett
2007-10-10 10:52:51 -05:00
Tim Potter
002cdd4a5b r2760: Another patch from The Written Word. Don't declare function prototypes
inside a function.  Bugzilla #1762.
2007-10-10 10:52:51 -05:00
Tim Potter
4f8496ad62 r2759: Fix for winbindd on AIX 5.1. Apparently it doesn't have as many methods
in struct secmethod_table as AIX 5.2.  Patch from The Written Word.
2007-10-10 10:52:51 -05:00
Andrew Bartlett
ce2456e436 r2755: Fix NTLMv2 for use with pam_winbind, the plaintext ntlm_auth modes,
and the wbinfo -a test tool.

If 'client ntlmv2 auth' is set, then we will send an NTLMv2, rather
than an NT/LM response to the server.

Andrew Bartlett
2007-10-10 10:52:51 -05:00
Günther Deschner
73ab2d2a74 r2753: Workaround for the (rather broken) _samr_query_useraliases rpc-call.
_samr_query_useraliases shows up with all kind of very weird memberships
(global-groups, machine-accounts, etc.). Sometimes even if there is no
alias-membership at all.

One of the biggest mistakes is to convert any unix-group the user is a
member of, into an alias by default in get_group_from_gid.

get_alias_user_groups should be rewritten to use
pdb_enum_alias_memberships.

Guenther
2007-10-10 10:52:51 -05:00
Günther Deschner
c5b8bc6c2e r2752: Fix the paranoia-check to ensure the ldap-attribute and the
smb.conf-parameter for samba's "algorithmic rid base" in ldapsam are
identical.

It tried to get the value of LDAP_ATTR_ALGORITHMIC_RID_BASE via
get_userattr_key2string() for a very long time now. This just can not
work because LDAP_ATTR_ALGORITHMIC_RID_BASE is neither in attrib_map_v22
nor in attrib_map_v30. Instead, get it directly from dominfo_attr_list.

Ldapsam will now correctly refuse to initialize when admins tried
manually to have differing values for "algorithmic rid base" in ldap and
smb.conf. idmap_ldap is another story...

Guenther
2007-10-10 10:52:50 -05:00
Günther Deschner
4886d6663d r2746: Fix typos in net's usage-output.
Guenther
2007-10-10 10:52:50 -05:00
Tim Potter
8ec28d613d r2736: Fix bug in Python printerdata wraper found by Daniel Jarboe. 2007-10-10 10:52:50 -05:00
Günther Deschner
8521891ee8 r2732: Fixed typo.
Guenther
2007-10-10 10:52:50 -05:00
Volker Lendecke
ef057e9534 r2729: Fix ldapsam_compat homeDrive. Thanks to jason@env.leeds.ac.uk
Volker
2007-10-10 10:52:50 -05:00
Günther Deschner
0f8e1a0d00 r2715: Swat-i18n-Patch from Björn Jacke <bjacke@sernet.de>:
"Unify charset-handling in Content-Type:-headers to UTF-8 (fixes #1766),
making UTF-8 the only supported (but fully functional) charset.  Also
remove html-header-files for ja and tr that have become obsolete now.
Reformat msgstr in msg-files to UTF-8."

Guenther
2007-10-10 10:52:50 -05:00
Jeremy Allison
38f3d3e263 r2708: Don't look for bzero, we don't use it.
Samba4 torture tester treates maxentries = 0 as maxentries ==1.
Jeremy.
2007-10-10 10:52:49 -05:00
Christopher R. Hertel
2a5d66791f r2706: The code that prints the remote MAC address (from the statistics section
of the response packet) was outside of the if() that determined whether
the query was successful or not.  As a result, the MAC address would print
out even if there was no MAC address.  At least the garbage it printed was
relatively consistent.  :)

I moved the MAC printing into the if() block and added an 'else' to print
"No reply..." if the query fails.

Chris -)-----
2007-10-10 10:52:49 -05:00
Jeremy Allison
ba69c7229c r2703: Fix typo noticed by Igor Belyi <sambauser@katehok.ac93.org>
Jeremy.
2007-10-10 10:52:49 -05:00
Jeremy Allison
0a40c1a50f r2700: Fix bug where we could incorrectly set sparse attribute. Don't use
st_blksize, it isn't what you think....
Jeremy.
--his line, and those below, will be ignored--

M    source/smbd/dosmode.c
2007-10-10 10:52:49 -05:00
Jim McDonough
5d57058d91 r2697: Fix for bugzilla #1732, patch by Satoh Fumiyasu, fumiya@samba.gr.jp
Limit share names returned by RAP based on windows character width, not unix
character width.
2007-10-10 10:52:49 -05:00
Volker Lendecke
c91cff3bd3 r2691: Increase a debug level for a quite frequent operation.
Optimization for 'idmap backend = ldap': When asking sid2id for the wrong
type, don't ask ldap when we have the opposite mapping in the local tdb.

Volker
2007-10-10 10:52:49 -05:00
Jeremy Allison
8a7741dddf r2665: Ensure the UNIX info level returned enough data.
Jeremy.
2007-10-10 10:52:49 -05:00
Jeremy Allison
b25cc59641 r2651: Added 'stat' command to smbclient to exercise the UNIX_FILE_BASIC
info level. Outputs data on the file in the same format the the
stat command in Linux. Should be useful to people wanting to learn
how to parse the UNIX extension output.
Yes I will add the docs later :-).
Jeremy.
2007-10-10 10:52:48 -05:00
Jeremy Allison
dad699ce0b r2637: Fix the roundup problem (returning 1mb roundup) for non-Windows
clients. This upsets the smb client in the Linux kernel (and Linus :-).
Jeremy.
2007-10-10 10:52:48 -05:00
Volker Lendecke
a32ea3bc88 r2619: Only issue the ldap extended password change operation if the ldap server
supports it. This might be a fix for bugs 1823 and 1545, notifying both.

Also ignore object class violation errors from the extended operation. We
don't have the userPassword field in sambaSamAccount, and if we have such
broken setup with user in /etc/passwd and only samba attribs in ldap, we fail
this :-)

Volker
2007-10-10 10:52:48 -05:00
Jeremy Allison
7b0560dccc r2610: Even if we only use the fast-path (ascii only) then
we still need to set errno = E2BIG when we overflow.
Jeremy.
2007-10-10 10:52:48 -05:00
Jeremy Allison
ca9516520f r2605: Fix stupid typo in back-port of Samba4 fix.
Jeremy.
2007-10-10 10:52:47 -05:00
Simo Sorce
557e12d1b5 r2599: avoid free()ing our static unalloceted memory that ends up in memory corruption. 2007-10-10 10:52:47 -05:00
Volker Lendecke
dcb577f1cd r2584: After talking to jerry, commit the strlower patch to getent username and
groupnames. In template homedir, leave %D alone uppercased.

Volker
2007-10-10 10:52:47 -05:00
Jeremy Allison
0465e2d23d r2578: Pick up optimisation from Samba4 - thanks tridge !
- I recently found out that charaters below 0x3F are guaranteed not to
  occur as secondary bytes in any multi-byte character set. This
  allows for a very simple optimisation in strchr_m() and
  strrchr_m(). It might be a good idea to pick this up for Samba3.
Jeremy.
2007-10-10 10:52:47 -05:00
Jeremy Allison
fc51c97ea8 r2575: Return correct error codes on old SEARCH call (from Samba4 torture tester).
Jeremy.
2007-10-10 10:52:47 -05:00
Gerald Carter
b26e4dbd7f r2570: minor fix with Rob's patch. use dos_errstr() instead of W_ERROR_V() when using %s in the format string 2007-10-10 10:52:46 -05:00