1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

12678 Commits

Author SHA1 Message Date
Andrew Bartlett
be0704abb9 (merge from 3.0)
Make more functions static, and remove duplication in the use of functions
in lib/smbpasswd.c that were exact duplicates of functions in passdb/passdb.c

(These should perhaps be pulled back out to smbpasswd.c, but that can occour
later).

This also includes some >14 character password changes, and the start
of a move away from using 'admin user' to determine if the user is
root (as root can login without setting 'admin user').

Andrew Bartlett
-
Andrew Bartlett
bb505ca696 (merge from 3.0)
Samba hasn't used this function for ages - it's now handled deep in the
auth subsystem.

Andrew Bartlett
-
Andrew Bartlett
33cdb2bd18 (merge from 3.0)
Remove more unused portions of the 'password cache'.

Andrew Bartlett
-
Andrew Bartlett
c29c28e4cf (merge from 3.0)
Remove more unused functions - this time parts of the 'password cache'.

Andrew Bartlett
-
Andrew Bartlett
58adb41db1 (merge from 3.0)
Another static function.

Andrew Bartlett
-
Andrew Bartlett
3803cb36e9 (merge from 3.0)
Make this table static const.

Andrew Bartlett
-
Andrew Bartlett
af8248e67b (merge from 3.0)
Remove unused utility function.

Andrew Bartlett
-
Andrew Bartlett
5335b9d5eb (merge from 3.0)
Make get_dc_list static - we only ask for a sorted list externally.

Andrew Bartlett
-
Andrew Bartlett
a813d4b6aa (merge from 3.0)
Bug found by gd - the new range-reterival code did still had 'member'
hardcoded into it.

This didn't matter, as we only use it for 'member' so far...

Andrew Bartlett
-
Andrew Bartlett
5243b89e33 (merge from 3.0)
I should have done this years ago...

This adds the very simple 'admin set password' capability to 'net rpc',
much as we have it for 'net ads'.

Andrew Bartlett
-
Tim Potter
9ea39d1c78 Replaced .po with .@PICSUFFIX@ -
Jeremy Allison
a1f7cea9f2 Fix final valgrind errors with #830. Catch mb conversion error that may not
terminate correctly.
Jeremy.
-
Jeremy Allison
e8c7d1c5dc Fixup the allocate version of the function to do "crap" conversions too.
Embarrassing number of goto's in this :-(. Fixes #830 I think.
Jeremy.
-
Andrew Bartlett
765757b357 (merge from 3.0)
Ensure the remote_password_change() gets a valid prototype from proto.h

Andrew Bartlett
-
Jeremy Allison
98e2c6f4f8 Working on #830. Cope with bad conversions better - don't just memcpy but
try a crap conversion instead. Next this needs to be done to the convert_alloc
function.
Actually fixes some valgrind warnings as well - cool !
Jeremy.
-
Jeremy Allison
2a8601d0bf Fix for a bug where the mutex could be left locked. Also remove the
memory keytab code which has no effect. Driven by bug report from
"Rob J. Caskey" <rcaskey@uga.edu>.
Jeremy.
-
Jeremy Allison
5c5545bd44 Merge from 3.0.
Jeremy.
-
Andrew Bartlett
841766bcbd (merge from 3.0)
Remove duplicate comment.

Andrew Bartlett
-
Volker Lendecke
3768b64c81 Remove bogus check. Cosmetics.
Volker
-
Gerald Carter
902d4a647a janitor duty (merges from 3.0) and cleanup compiler warning on SuSE 9 in the end mapper code -
Tim Potter
cbf9c3d395 Merge from 3.0:
>Include sys/acl.h in check for broken nisplus include files.  Bug #1025.
-
Tim Potter
d8182b8bf5 Merge from 3.0:
>Don't log an error if a tdb_brlock() returns EAGAIN - it's supposed to
>do that.
-
Gerald Carter
758bbfb5f1 * BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;
* don't set the unix_ERR_XX code in mkdir_internal, let the error mapping
  handle it.
-
Gerald Carter
d59dc1bc1c cleanup patch for bug 977 so we don't display incorrect debug messages -
Andrew Bartlett
2ae9672f81 (merge from 3.0)
If we are setting the NT or LM password to NULL, remove the attribute
rather than writing XXXXX

Andrew Bartlett
-
Jeremy Allison
be60768e64 Fix up name canonicalization (needed for krb5 keytab support later).
Remove source_env handler (no longer used in any codepath).
Jeremy.
-
Gerald Carter
6c4de7198b disable any account that doesn't have a password and doesn't had the ACB_PWNOTREQ bit set -
Gerald Carter
63206b1204 more initialization fixes -
Gerald Carter
77335cc5bc merge from 3.0 -
Gerald Carter
c81c0ffaab removing more unused parameters -
Gerald Carter
e94590fd5a BUG 570: don't overwrite LDFLAGS; patch from MORIYAMA Masayuki <moriyama@miraclelinux.com> -
Simo Sorce
9836def8a9 reactivate pdb_gums as static module -
Simo Sorce
428504b550 This should cure the problem with gums not compiling. -
Andrew Tridgell
467a58af34 updated the head branch as well -
Richard Sharpe
9a81094a0f Remove an unused parameter in winbindd (reload_services_file) -
Christopher R. Hertel
6a8a64dc87 This is Simo's patch for the NetShareEnum() bug which caused us to return
share names longer than 12 bytes.  The function now filters out names
longer than 12 bytes (which is compatible with Windows behavior).

A better fix might be to store short names along with any names longer
than 12 bytes, using a simple (very) name mangling.

I'm committing in HEAD.  If there are no problems this can easily be
merged into 3.0.x.

Chris -)-----
-
Jelmer Vernooij
df7666161f Don't built gums by default
(to enable it, run ./configure --with-static-modules=pdb_gums)
-
Gerald Carter
e589f6502f bug 977 - don't create a homes share for a user if a static share already exists by the same name -
Andrew Bartlett
0a9afefb55 (merge from 3.0)
Clarify comment on set_effective_uid()

Andrew Bartlett
-
Andrew Bartlett
e5b5cd5966 (merge from 3.0)
Revise our server-side password change code to cope with the various
different feilds that different clients send.  (For example, not all clients
send both password types).

This also cleans up the code to make it clearer what is really going on,
and to make better use of common functions.

Andrew Bartlett
-
Andrew Bartlett
8063b8b6c2 (merge from 3.0)
This adds client-side support for the unicode/SAMR password change scheme.

As well as avoiding DOS charset issues, this scheme returns useful error
codes, that we can map back via the pam interface.

This patch also cleans up the interfaces used for password buffers, to
avoid duplication of code.

Andrew Bartlett
-
Andrew Bartlett
b5b6a5937c (merge from 3.0)
Patch by Luca Bolcioni <Luca.Bolcioni@yacme.com>.  Ensure we always
initialise the session key.  Fixes segfaults with security=server, and
encrypt passwords = no.

Andrew Bartlett
-
Andrew Bartlett
40cc86d4b3 (merge from 3.0)
Fix the initialisation vectors for NTLM2, so that they at least make sense,
even if they don't work yet.

Andrew Bartlett
-
Andrew Bartlett
5536c7448e (merge from 3.0)
If we are providing strndup(), ensure we provide a prototype too.

Andrew Bartlett
-
Andrew Bartlett
971dd33244 (merge from 3.0)
Fix removal of attributes in LDAP - we would not actually remove the old
value in the previous code.

Andrew Bartlett
-
Andrew Bartlett
c84e8e91e4 (merge from 3.0)
A Samba DC is nothing special these days - so every domain controller
location packet from the client is not a DEBUG(1) event anymore...

(Yes, we printed this for each of these UDP packets...)

Andrew Bartlett
-
Volker Lendecke
f83606a058 Fix typo -
Volker Lendecke
3fda2a0432 Fix decoding of base64. We got the length wrong when the result was not
an exact multiple of 3.

I also wrote a torture test and it survived some minutes of random stuff
coded/decoded up to 16 MB data. But that would be a bit too embarassing to
commit... :-)

Volker
-
Simo Sorce
4840b25dbd fix previously committed old version by mistake -
Simo Sorce
c5634e0b71 sorry for the conflict markers committed in by mistake :-( -