1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

7469 Commits

Author SHA1 Message Date
Gerald Carter
efcde5d9d8 some merges from 2.2. Still need to merge in changes from pdb_tdb.c
but it will take more time as I don't want to loose any fixes that
are only in HEAD.
0001-01-01 00:00:00 +00:00
Simo Sorce
ce7e89949a freeing the wrong pointer, sorry my mistake. 0001-01-01 00:00:00 +00:00
Tim Potter
6b7e9d03cf Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au> 0001-01-01 00:00:00 +00:00
Simo Sorce
49f5cb7a3d util_sid.c - respect a const variabile (addedd strdup)
cli_reg.c  - indentation
pdb_ldap.c - some checks on init fns parameters
pdb_tdb.c  - some checks on init fns parameters + make sure we close the db on failure
0001-01-01 00:00:00 +00:00
Andrew Bartlett
2efae7cc52 Add a pile of doxygen style comments to various parts of Samba. Many of these
probably will never actually be genearted, but I like the style in any case.

Also fix a segfault in 'net rpc' when the login failed and a small memory leak
on failure in the auth_info.c code.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
30ef625897 Finally remove these files, which moved (by cvs backend magic) to source/auth
at the start of the month.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
79031b68ce Finish idra's cleanup of the RPC remote shutdown code. 0001-01-01 00:00:00 +00:00
Simo Sorce
d2c663185e remove unneaded memory leaking code. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
33ae29028b Fix the compile on systems without a full kerberos kit.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
14407c87e2 Make Samba compile on RH 6.2 again.
We now include the libber.h file if required, but currently we just don't use
ldap.  (I'll chase this up).

In the meantime, I've moved the ads_status code about, its now in its own file,
and has a couple of #ifdefs to allow smbd to link - becouse the lack of LDAP
caused HAVE_ADS to be undefined. (I hope its not too ugly).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
fffae94dd5 When running interactive we want to set our own process group for
signal management.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
54cbfc7ebc pdb_getsampwnuid() merge from 2.2 0001-01-01 00:00:00 +00:00
Jeremy Allison
a076e2e4c5 Documented -i modes for nmbd/smbd.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9343b613d3 Fixup -i interactive modes.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7ce2d1fe37 Removed extra lp_adduser() call.
Fixed up error returns in get_correct_cversion().
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
d57c43fd05 file Samba-LDAP-HOWTO.sgml was initially added on branch SAMBA_2_2. 0001-01-01 00:00:00 +00:00
Simo Sorce
79254d2b04 passing NULL to print_queue_status()'s status parameter could end in a segfault 0001-01-01 00:00:00 +00:00
Gerald Carter
c6d867b552 removed unused files 0001-01-01 00:00:00 +00:00
Gerald Carter
241b5218ea merge from 2.2 0001-01-01 00:00:00 +00:00
Gerald Carter
f0d4379115 moving SAM_ACCOUNT to include a bit field for initialized
members (such as uid and gid).  This way we will be able to
keep ourselves from writing out default smb.conf settings when
the admin doesn't want to,  That part is not done yet.

Tested compiles with ldap/tdb/smbpasswd.  Tested connection with smbpasswd
backend.

oh...and smbpasswd doesn'y automatically expire accounts after 21 days
from the last password change either now.  Just ifdef'd out that code
in build_sam_account().

Will merge updates into 2.2 as they are necessary.




jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
aca58b0b72 sync with 2.2 0001-01-01 00:00:00 +00:00
Herb Lewis
52e9d2c383 merge Jeremy's gcc3 warning fix from 2.2 0001-01-01 00:00:00 +00:00
Herb Lewis
3999e13ef8 sync up packaging scripts 0001-01-01 00:00:00 +00:00
Herb Lewis
20c5f042e3 merge IRIX winbind support from Samba 2.2 branch 0001-01-01 00:00:00 +00:00
Jeremy Allison
621fa227bd Removed unused variables.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
bf18160997 The jf_get_sampasswd_entries() is not used anymore.
Jeremy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
87928c4d91 added a copyright notice.
J.F.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
c0178e1a03 doesn't keep track of the struct's size we enumerate. W2K doesn't
calculate them and always reply a size of 32 bytes whereas NT4 did the
maths. Anyway, it looks like the clients don't complain.

in query_dom_info() at level 2, return the real number of users and
groups. That's the fix to the W95/98 userlist bug !

as W95/98 does a query_dom_info(2) followed by a query_disp_info(4) on
the SAME context handle (err we call it an lsa policy handle ! plain
wrong name), I was tempted to keep the snapshoot in memory, to prevent
2 full user db enumerations in a row and just have one shared. But if some
client does the 2 calls on two different handles, we would have 2 copies
in memory not free'ed before the samr_close().

We still have too many fixed constant and too many magic values in that
code. And btw, I really hates how the sequence number is generated !

        J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
bf65331cb4 Fixup some DEBUG statements (0 -> 10).
Jeremy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
55b9cd7af6 close some handles. not really necessary but doesn't hurt.
J.F.
0001-01-01 00:00:00 +00:00
Gerald Carter
6697e46183 merge from 2.2 0001-01-01 00:00:00 +00:00
Jeremy Allison
a7d099cc75 Use pdb_free_sam() to free a SAM_ACCOUNT struct, not safe_free(). There
are pointers withing the SAM_ACCOUNT struct that also need freeing.
Jeremy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
d5f2e645e4 added all level to samr_query_disp_info rpcclient side.
J.F.
0001-01-01 00:00:00 +00:00
Volker Lendecke
768f90a6ca Large expansion of my german book project.
Volker
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
3ab4521536 re-done all of samr_query_disp_info()
instead of enumerating the whole user db or group db every time, we store
a in memory copy linked to the handle.

that's much faster for large enumeration where the db can't fit in a
single rpc packet. And as it's a copy, it's constant between enumeration.

still some stuff to clean. But now I can fix the W95 userlist bug, as I've
finally found it.

	J.F.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
18dc4cd57a put back the -l option to rpcclient.
that's the most useful option in this tool !

I love rpcclient ;-)

	J.F.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
20368455ea - handle kerberos session setup reply with broken null termination
- don't display Domain=[] for auth protocols that don't give us a domain
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1da988456d try to handle end of packet for not null terminated domain strings 0001-01-01 00:00:00 +00:00
Andrew Tridgell
831f25a9a7 updated ldap test to test for less common function 0001-01-01 00:00:00 +00:00
Andrew Tridgell
da353bc539 fixed a typo in vsyslog() 0001-01-01 00:00:00 +00:00
Herb Lewis
b60d6f1197 remove duplicate lines 0001-01-01 00:00:00 +00:00
Martin Pool
ecc624067c smbcontrol in non-interactive mode was returning True for success --
need to invert this to give the shell 0.
0001-01-01 00:00:00 +00:00
Martin Pool
53f1c0298b Add option to pass NULL max_replies to wait_for_replies in case you
don't know how many to expect.
0001-01-01 00:00:00 +00:00
Martin Pool
17bb0f60af Add code to send MSG_REQ_POOL_USAGE. (smbd doesn't respond yet.)
Factor out common code to wait until replies are received or timeout
expires.

Show debug message when messages are sent.
0001-01-01 00:00:00 +00:00
Tim Potter
54d2765615 Append to log.winbindd instead of overwriting it so we are consistent with
smbd/nmbd behaviour.
0001-01-01 00:00:00 +00:00
Tim Potter
60d1d0bfa9 Fix for null command description in rpcclient help. From Benjamin Kuit
<bj@it.uts.edu.au>.
0001-01-01 00:00:00 +00:00
Martin Pool
22e510ea0d Add an output parameter to message_send_all that says how many
messages were sent, so you know how many replies to expect.

Const and doc religion.
0001-01-01 00:00:00 +00:00
Martin Pool
d32598c953 Factor out a broadcast_printer_notify() routine. 0001-01-01 00:00:00 +00:00
Martin Pool
b28dbbf569 Add MSG_REQ_POOL_USAGE to get memory usage info. 0001-01-01 00:00:00 +00:00
Samba Release Account
9542b0a42c preparing for release of 3.0-alpha12 0001-01-01 00:00:00 +00:00