1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

8629 Commits

Author SHA1 Message Date
Tim Potter
fc75c3ccc3 Use new version of open_pipe_creds() function.
A compile fix for enumerating trusted domains.
-
Tim Potter
793f1042f1 Check types of dictionary elements in to_struct() -
Tim Potter
e5dcd3c7cc Convert open_pipe_creds() to use new cli_full_connection() interface.
Initialise global_myname in py_samba_init() function.
-
Tim Potter
1ef99e7663 Honour return value of to_struct() when converting to Samba structures. -
Tim Potter
736eb3c748 Fixed compiler warning. -
Tim Potter
45562b8603 Fixed dodgy arguments to PyArg_ParseTupleAndKeywords() -
Tim Potter
0b2bd0a229 Some rearrangement of header files. -
Simo Sorce
f5c6496c33 change: pdb_getsampwrid() ->pdb_getsampwsid()
passdb interface change, now the passdb modules will be asked for SID not for rid, the modules have been updated with a passthrough function that calls the old getsampwrid() functions.

srv_samr_nt.c functions that made use of the pdb_getsampwrid funcion has been updated to use the SID one.
-
Andrew Bartlett
17a5f67b3d Add support for NTLMv2 (tested!) with NTLMSSP.
The problem was the NTLMv2 uses extra data in order to make reply/lookup
more difficult.  That extra data includes the hostname, and the domain.

This matches Win2k (sort of) by sending this information.

Win2k connects with LMCompatibilityLevel=5 without a problem.

We can change the negotiation bits if we want, this should allow us to make
NTLMv2 the default for other clients as well.

Some of the extra #defines were found in the squid source.

Andrew Bartlett
-
Simo Sorce
44df5a13bc move debug stuff from messages.c to debug.c (Elrond) -
Andrew Bartlett
dec650efa8 Update some of the LM hash code to better respect the seperation between
unix and DOS strings.

This pushes all the 'have to uppercase, must be 14 chars' stuff behind the
the interface.

Andrew Bartlett
-
Andrew Bartlett
cdcfe3671e Clean up a few unused functions, add a bit of static etc.
Importantly:

The removal of the silly 'delete user script' behaviour when secuity=domain.

I have left the name the same - as it still does the (previously documented,
but not in smb.conf(5)) sane behaviour of deleting users on request.

When we decide what to do with the 'add user' functionality, we might
rename it.

Andrew Bartlett
-
Andrew Bartlett
bbc6954551 Only reterive the attributes we are actually going to use - rather than
the whole record which could include things like photos's etc.

Andrew Bartlett
-
Andrew Bartlett
57097bf1ba Remove unused variable, fix functions to match prototypes in the various
structs.

Andrew Bartlett
-
Gerald Carter
f0226a1d83 merge from SAMBA_2_2 -
Gerald Carter
83f109c940 merge from SAMBA_2_2.
Tim, please check the prs_align() removed from sec_io_desc()
and make sure it doesn't break anything else.  I know it is
right for the printing needs and I have tested some other
general things like viewing acls on directories, but I would
feel more comfortable if you would have a look as well.


jerry
-
Andrew Bartlett
c92f4f4d72 Name the authentication modules, and therfore fix up both the build farm
and secuirty=server.

I *love* automated testing...

Andrew Bartlett
-
Andrew Bartlett
1022a176e5 Some grammar fixes picked up from the bugs.debian.org, submitted by
jrv@vanzandt.mv.com

Most of them didn't apply any more, but the bits that did I've commited.

Andrew Bartlett
-
Andrew Bartlett
2498bc69d4 Some of the updates from ctrlsoft's 'Various' patch:
- convert net to popt
- convert status to popt
- adapt examples/pdb/ to multiple passdb system
- add dynamic debug class example to examples/pdb/

and some reformatting to better match the samba coding style.

Andrew Bartlett
-
Tim Potter
2f74fb6e98 Fixed incorrect comment. -
Andrew Bartlett
c205b18bd6 Remove the password length paramater from cli_full_connection - it really
didn't make any sense, and its was always just strlen(password) anyway.

This fixes it to be strlen(password)+1

Andrew Bartlett
-
Andrew Bartlett
3897cf5e04 Move the authenticaion subsystem over to the same 'module:options' syntax
that the passdb code now uses.  Similarly, move the 'pluggable' stuff
over from passdb as well, allowing runtime loading of new authenticaion
modules.

(NOTE:  The interfaces here can *and do* change - module writers are
not assured source-level compatibilty, and certainly not binary
compatibility).
-
Andrew Bartlett
18c6db6a00 Don't duplicat this here, use the existing function prototype. -
Andrew Bartlett
38012edaca Make function match the defintion require for assignment as a function
pointer.
-
Jeremy Allison
f536ec6224 If we don't do the select don't do the recvfrom.
Jeremy.
-
Jeremy Allison
4d3679e03e Fixed silly typo that causes receive_local_message to loop - caused by
my removal of the goto. Oops !
Jeremy.
-
Tim Potter
63e2c7c5fe Compile fix for enum trust dom wrapper. -
Jim McDonough
37b6bf3aae Looks like abartlet got a bit overexcited about using const...
BOOL const secrets_init(...)

Broke AIX build.
-
Jim McDonough
033faaa8cb Allow initial password set on net ads user add. I need to do this on
rpc and rap too.  Anyone know what key I'm supposed to use to encrypt
it for the rap one?
-
Andrew Bartlett
7201720048 This function is unused, and doesn't make any sense to me anyway.
Wasn't this what got us some of the bugs with big-endien smbpasswd -j FOO -U ?

Anyway, it deserves to die.

Andrew Bartlett
-
Andrew Bartlett
89dc157320 Nobody uses this, and its really just a layer of internal implementation.
Make it static (till sombody needs its...)
-
Andrew Bartlett
fa67e4626b Given Jeremy's positive response, and a lack of one from tpot, I'll commit
this:

More code cleanup - this lot a bit more dodgy than the last:

The aim is to trim pwd_cache down to size.  Its overly complex, and a
pain to deal with.  With a header comment like this:

'obfusticaion is planned'

I think it deserved to die (at least partly).

This was being done to allow 'cli_establish_connection' to die - its
functionality has been replaced by cli_full_connection(), which does
not duplicate code everywhere for creating names etc.

This also removes the little 'init' fucntions for the various pipes,
becouse they were only used in one place, and even then it was dodgy.

(I've reworked smbcacls not to use anonymous connections any more, as
this will (should) fail with a 'restrict anonymous' PDC).

This allowed me to remove cli_pipe_util.c, which was calling
cli_establish_connection.

tpot:  I'm not sure what direction you were going with the client stuff,
and you may well have been wanting the init functions.  If thats the case,
give me a yell and I'll reimplement them against cli_full_connection.

Andrew Bartlett
-
Tim Potter
08dcfff2a2 A graphical tdb browser using the gnome-python bindings. -
Tim Potter
1d75b548de Another change to the GPL "abandon hope all who enter here" warning. -
Jeremy Allison
22b0d5da63 Ensure we kill with -TERM.
Jeremy.
-
Jeremy Allison
5c8351228c Merge of bugfixes from 2.2.
Jeremy.
-
Tim Potter
08356ec38a Got gdb and gpl confused. (-: -
Jeremy Allison
490b95a35d Fix for strangeness in Linux 2.0.x select return.
Jeremy.
-
Jeremy Allison
7e6db25080 Remove horrid goto.
Jeremy.
-
Andrew Bartlett
31e074cea5 Nobody uses this function, and there really doesn't seem much point to
it, so we may as well reduce the complexity.

Andrew Bartlett
-
Andrew Bartlett
9d8431b04f Add a bit more const, and kill of (finally!) sys_getpwnam and sys_getpwuid.
These might be reimplmented as simple pass-through functions, but all users
really should be doing 'getpwnam_alloc' or 'getpwuid_alloc' to ensure that
there are not shared static buffers.

I don't beleive we actually need a getpw*() cache inside samba - if we do
then I think we should look at our code design first.

(some of these changes are for platforms I don't have access to, but
they look sane)

Andrew Bartlett
-
Andrew Bartlett
302dad4990 Cleanups!
Make some code static, add some const to the PAM code, and make the plaintext
password code actually function - particulary without the requirement to
modify the 'struct passwd' (which it assumed was made up of fstrings)

This kills some particularly ugly code in lib/util_pw.c

Andrew Bartlett
-
Andrew Bartlett
d0ea70fce5 Fix a silly memory (getpnam_alloc()) leak spotted by Elrond, and move
the DATA_BLOB code into its own file.

It would be nice to go over some of the other util.c functions, and check
that we still use them all, and that we use them in more than one place.

Andrew Bartlett
-
Andrew Bartlett
5512618d34 Commit the header file for the LDAP/secrets changes -
Andrew Bartlett
4f7ba78c9d Updates for sane storage of ldap root DN passwords (tested, with upgrade
from 2.2 format) and LDAP rebind support (untested, I don't have a setup
to match).

Andrew Bartlett
-
Andrew Tridgell
e99b6a2b91 auto-recover from the fairly common case of a non-clean tdb shutdown
while deleting a record. This leaves us with a non-free record on the
free list.
-
Jeremy Allison
d4dbb9cb13 Merge of receive_local_message fix from 2.2.5.
Jeremy.
-
Tim Potter
aa3ec7618f Added a reminder about programs using the tdb bindings having to be
licensed under the GPL.
-
Jeremy Allison
bd64a291a8 Failing to find an entry when doing mod_share_entry isn't a error
condition, as we look for the entry before locking the chain - thus
someone else could have legitimately deleted it.
Jeremy.
-
Jeremy Allison
3bb26957e3 Tricky fix. If we were waiting for an oplock break response message from
another smbd and an incoming SIGUSR1 message arrived we'd break out of
the wait early - as we have to use sys_select() to wait for an oplock
response message, not sys_select_intr() (which ignores EINTR errors)
because of the real time signal kernel interface.
Jeremy.
-