1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

6440 Commits

Author SHA1 Message Date
Andrew Tridgell
eb4e101153 - portablitity fixes for cc -64 on irix
- fixed gid* bug in rpc_server
(This used to be commit 48aa90c48c)
2001-12-31 13:46:26 +00:00
Andrew Bartlett
af7bd393da Ensure the output cli can't have spurious values if the connection fails...
(This used to be commit 2d1612dd35)
2001-12-31 13:06:10 +00:00
Andrew Bartlett
a0681820e6 Add 'net rpc shutdown' and 'net rpc abortshutdown'.
These two little features are very useful, but the passing of options about
needs some serious work.  The popt stuff in the shutdown code is #ifdef'ed out
until the main popt loop can be convinced not to chew on the options :-(

Andrew Bartlett
(This used to be commit 51c985be7f)
2001-12-31 13:00:59 +00:00
Andrew Bartlett
82cfa2b248 Fix up the comment in the copyright header
(This used to be commit 45042bef7c)
2001-12-31 12:50:44 +00:00
Andrew Bartlett
85c5b3c315 Give the main loop talloc context a name (using mbp's new talloc naming
system).

Andrew Bartlett
(This used to be commit f0c301a12e)
2001-12-31 12:41:24 +00:00
Andrew Bartlett
8e4e261471 Make --with-tdbsam compile again, given the new 'am I setting a default' flags.
Andrew Bartlett
(This used to be commit 20d7c5d9b9)
2001-12-31 11:25:48 +00:00
Andrew Bartlett
8536aa5ef3 Allow this to build without LDAP, as per the example below it.
Andrew Bartlett
(This used to be commit f60e445001)
2001-12-31 11:14:38 +00:00
Gerald Carter
871f1791c6 fix compile error
(This used to be commit c946c6bbc8)
2001-12-31 02:04:08 +00:00
Gerald Carter
8d8484dc30 removed extern samlogon_user
(This used to be commit a7dc0febe4)
2001-12-31 01:56:05 +00:00
Gerald Carter
85382100e4 remove samlogon_user
(This used to be commit a5f4559b2a)
2001-12-31 00:09:15 +00:00
Gerald Carter
7fdb821ef3 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.
(This used to be commit efcde5d9d8)
2001-12-31 00:06:51 +00:00
Simo Sorce
78528b4ec6 freeing the wrong pointer, sorry my mistake.
(This used to be commit ce7e89949a)
2001-12-30 22:55:04 +00:00
Tim Potter
a4c612078f Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>
(This used to be commit 6b7e9d03cf)
2001-12-30 21:25:46 +00:00
Simo Sorce
0608a60390 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
(This used to be commit 49f5cb7a3d)
2001-12-30 19:21:25 +00:00
Andrew Bartlett
f6e6c678ad 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
(This used to be commit 2efae7cc52)
2001-12-30 10:54:58 +00:00
Andrew Bartlett
3e10f9554b Finally remove these files, which moved (by cvs backend magic) to source/auth
at the start of the month.
(This used to be commit 30ef625897)
2001-12-30 10:50:46 +00:00
Andrew Bartlett
72898d4821 Finish idra's cleanup of the RPC remote shutdown code.
(This used to be commit 79031b68ce)
2001-12-30 10:19:56 +00:00
Simo Sorce
f399e17542 remove unneaded memory leaking code.
(This used to be commit d2c663185e)
2001-12-30 08:37:34 +00:00
Andrew Bartlett
436595a386 Fix the compile on systems without a full kerberos kit.
Andrew Bartlett
(This used to be commit 33ae29028b)
2001-12-30 06:20:23 +00:00
Andrew Bartlett
34037e2479 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
(This used to be commit 14407c87e2)
2001-12-30 05:59:43 +00:00
Jeremy Allison
bb81e23e17 When running interactive we want to set our own process group for
signal management.
Jeremy.
(This used to be commit fffae94dd5)
2001-12-30 01:46:38 +00:00
Gerald Carter
98010a0767 pdb_getsampwnuid() merge from 2.2
(This used to be commit 54cbfc7ebc)
2001-12-30 00:03:47 +00:00
Jeremy Allison
0d6a1c0998 Fixup -i interactive modes.
Jeremy.
(This used to be commit 9343b613d3)
2001-12-29 21:13:53 +00:00
Jeremy Allison
11b14e8389 Removed extra lp_adduser() call.
Fixed up error returns in get_correct_cversion().
Jeremy.
(This used to be commit 7ce2d1fe37)
2001-12-29 20:29:43 +00:00
Simo Sorce
4fd97a7a03 passing NULL to print_queue_status()'s status parameter could end in a segfault
(This used to be commit 79254d2b04)
2001-12-29 09:52:24 +00:00
Gerald Carter
b6878a35b5 removed unused files
(This used to be commit c6d867b552)
2001-12-28 02:28:39 +00:00
Gerald Carter
04aff47c71 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
(This used to be commit f0d4379115)
2001-12-27 06:38:04 +00:00
Herb Lewis
480b5c8158 merge Jeremy's gcc3 warning fix from 2.2
(This used to be commit 52e9d2c383)
2001-12-22 01:15:58 +00:00
Herb Lewis
e674581416 merge IRIX winbind support from Samba 2.2 branch
(This used to be commit 20c5f042e3)
2001-12-22 00:51:32 +00:00
Jeremy Allison
7478d27e70 Removed unused variables.
Jeremy.
(This used to be commit 621fa227bd)
2001-12-21 23:28:04 +00:00
Jeremy Allison
e1e64a26fa The jf_get_sampasswd_entries() is not used anymore.
Jeremy.
(This used to be commit bf18160997)
2001-12-21 23:25:32 +00:00
Jean-François Micouleau
1acf4f67a2 added a copyright notice.
J.F.
(This used to be commit 87928c4d91)
2001-12-21 22:54:53 +00:00
Jean-François Micouleau
0e550b2c11 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.
(This used to be commit c0178e1a03)
2001-12-21 22:34:49 +00:00
Jeremy Allison
5829284a07 Fixup some DEBUG statements (0 -> 10).
Jeremy.
(This used to be commit bf65331cb4)
2001-12-21 22:27:20 +00:00
Jean-François Micouleau
52d50bac7a close some handles. not really necessary but doesn't hurt.
J.F.
(This used to be commit 55b9cd7af6)
2001-12-21 22:18:06 +00:00
Gerald Carter
ca87fe7176 merge from 2.2
(This used to be commit 6697e46183)
2001-12-21 20:04:22 +00:00
Jeremy Allison
fff44cc700 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.
(This used to be commit a7d099cc75)
2001-12-21 19:34:32 +00:00
Jean-François Micouleau
bead5bf57c added all level to samr_query_disp_info rpcclient side.
J.F.
(This used to be commit d5f2e645e4)
2001-12-21 13:38:07 +00:00
Jean-François Micouleau
595dd01507 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.
(This used to be commit 3ab4521536)
2001-12-21 13:36:14 +00:00
Jean-François Micouleau
28eb6b91b2 put back the -l option to rpcclient.
that's the most useful option in this tool !

I love rpcclient ;-)

	J.F.
(This used to be commit 18dc4cd57a)
2001-12-21 13:30:55 +00:00
Andrew Tridgell
caaac2803a - handle kerberos session setup reply with broken null termination
- don't display Domain=[] for auth protocols that don't give us a domain
(This used to be commit 20368455ea)
2001-12-21 12:29:51 +00:00
Andrew Tridgell
384ce26f5b try to handle end of packet for not null terminated domain strings
(This used to be commit 1da988456d)
2001-12-21 11:58:30 +00:00
Andrew Tridgell
65ad38f6f7 updated ldap test to test for less common function
(This used to be commit 831f25a9a7)
2001-12-21 11:20:59 +00:00
Andrew Tridgell
a237a8a296 fixed a typo in vsyslog()
(This used to be commit da353bc539)
2001-12-21 11:04:14 +00:00
Herb Lewis
c10bc7b9a1 remove duplicate lines
(This used to be commit b60d6f1197)
2001-12-21 05:13:36 +00:00
Martin Pool
c5f44afda7 smbcontrol in non-interactive mode was returning True for success --
need to invert this to give the shell 0.
(This used to be commit ecc624067c)
2001-12-21 04:33:28 +00:00
Martin Pool
86fb267fc8 Add option to pass NULL max_replies to wait_for_replies in case you
don't know how many to expect.
(This used to be commit 53f1c0298b)
2001-12-21 04:30:58 +00:00
Martin Pool
e27fbe7075 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.
(This used to be commit 17bb0f60af)
2001-12-21 04:28:03 +00:00
Tim Potter
2bfeee924c Append to log.winbindd instead of overwriting it so we are consistent with
smbd/nmbd behaviour.
(This used to be commit 54d2765615)
2001-12-21 02:23:38 +00:00
Tim Potter
203c2301eb Fix for null command description in rpcclient help. From Benjamin Kuit
<bj@it.uts.edu.au>.
(This used to be commit 60d1d0bfa9)
2001-12-21 01:16:37 +00:00