ira/wip.git
22 years agoIf we receive a message that is not handled then emit a gentle warning
Martin Pool [Thu, 3 Jan 2002 03:42:33 +0000 (03:42 +0000)]
If we receive a message that is not handled then emit a gentle warning
to the log.

22 years agodebug output on receipt of message.
Martin Pool [Thu, 3 Jan 2002 03:35:02 +0000 (03:35 +0000)]
debug output on receipt of message.

22 years agoOops, rerun autoconf after last change.
Martin Pool [Thu, 3 Jan 2002 03:14:51 +0000 (03:14 +0000)]
Oops, rerun autoconf after last change.

22 years agoWelcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE to
Tim Potter [Thu, 3 Jan 2002 03:07:51 +0000 (03:07 +0000)]
Welcome to preprocessor hell.  Had to put a #ifndef around SAFE_FREE to
stop smb_macros.h and tdb.h from fighting with each other.

I tried to rearrange the #include file order but that breaks other stuff.
Aargh!

22 years agoAdd instructions on using dmalloc.
Martin Pool [Thu, 3 Jan 2002 03:04:35 +0000 (03:04 +0000)]
Add instructions on using dmalloc.

22 years agoFixed crash bug in display_print_info_1()
Tim Potter [Thu, 3 Jan 2002 02:48:23 +0000 (02:48 +0000)]
Fixed crash bug in display_print_info_1()

22 years agoInitialise result on success in cli_spoolss_enum_printers() so we don't get
Tim Potter [Thu, 3 Jan 2002 02:47:50 +0000 (02:47 +0000)]
Initialise result on success in cli_spoolss_enum_printers() so we don't get
stuck in an infinite loop.

22 years agoThe werror<->nt status code map has changed and has broken all the spoolss
Tim Potter [Thu, 3 Jan 2002 02:36:08 +0000 (02:36 +0000)]
The werror<->nt status code map has changed and has broken all the spoolss
commands in rpcclient.  Replacing ERROR_INSUFFICIENT_BUFFER with
NT_STATUS_BUFFER_TOO_SMALL fixes it.  Yay!

I always thought the caller (i.e cmd_spoolss.c) should take care of the
whole requested/needed buffer size thingy though...

22 years agoRemoved unused #define
Tim Potter [Thu, 3 Jan 2002 02:28:51 +0000 (02:28 +0000)]
Removed unused #define

22 years agodebug statement fixups.
Jeremy Allison [Wed, 2 Jan 2002 23:28:55 +0000 (23:28 +0000)]
debug statement fixups.
Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix.
Jeremy.

22 years agoremoved stuff I wasn't using
Gerald Carter [Wed, 2 Jan 2002 23:11:24 +0000 (23:11 +0000)]
removed stuff I wasn't using

22 years agosync up ldap defaults with 2.2
Gerald Carter [Wed, 2 Jan 2002 22:44:15 +0000 (22:44 +0000)]
sync up ldap defaults with 2.2

22 years agoooops./ forgot one
Gerald Carter [Wed, 2 Jan 2002 22:22:22 +0000 (22:22 +0000)]
ooops./  forgot one

22 years agofixing compile error
Gerald Carter [Wed, 2 Jan 2002 22:02:11 +0000 (22:02 +0000)]
fixing compile error

22 years agoWe should be SHLD not LINK when creating shared libraries.
Jeremy Allison [Wed, 2 Jan 2002 21:54:38 +0000 (21:54 +0000)]
We should be SHLD not LINK when creating shared libraries.
Tidyup in passdb.c
Jeremy.

22 years agoWe go to a lot of effort to avoid strcpy() in Samba, but its not much use if
Andrew Bartlett [Wed, 2 Jan 2002 09:02:28 +0000 (09:02 +0000)]
We go to a lot of effort to avoid strcpy() in Samba, but its not much use if
people start doing using strlen(src) in strncpy() :-)

This occured when the talloc based passdb was reverted in favor of a pstring
based one.  In the talloc version this was fine, becouse the buffer was
strlen(src) bytes long.  This no longer applies...

This doesn't seem to have broken anything, but I'm chasing up an oddity with NT
password changing from the last merge.

Test & MERGE for 2.2.3

Andrew Bartlett

22 years agoAdd prs_dump_before to dump everything from the start of the prs
Martin Pool [Wed, 2 Jan 2002 07:48:07 +0000 (07:48 +0000)]
Add prs_dump_before to dump everything from the start of the prs
buffer up to the current position, and use this to dump pipe buffers
just before parsing.

22 years agoActually enforce the passdb API.
Andrew Bartlett [Wed, 2 Jan 2002 07:41:54 +0000 (07:41 +0000)]
Actually enforce the passdb API.

Thou shalt not reference SAM_ACCOUNT members directly - always use
pdb_get/pdb_set.

This is achived by making the whole of SAM_ACCOUNT have a .private member,
where the real members live.  This caught a pile of examples, and these have
beeen fixed.

The pdb_get..() functions are 'const' (have been for some time) and this
required a few small changes to constify other functions.

I've also added some debugs to the pdb get and set, they can be removed if
requested.

I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb
interface, but I need the flags info to do it properly.

The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such
I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result.

Finally, any and all testing is always appriciated - but the basics seem to
work.

Andrew Bartlett

22 years agoMake user enumeration work for w2k and win9x.
Jeremy Allison [Wed, 2 Jan 2002 07:27:33 +0000 (07:27 +0000)]
Make user enumeration work for w2k and win9x.
This means different return sizes depending on client bugs. This sucks :-(.
Jeremy.

22 years agoAnother touch of 'const'
Andrew Bartlett [Wed, 2 Jan 2002 06:55:21 +0000 (06:55 +0000)]
Another touch of 'const'

22 years agoDoc.
Martin Pool [Wed, 2 Jan 2002 06:29:56 +0000 (06:29 +0000)]
Doc.

22 years agoAlso capture received data
Martin Pool [Wed, 2 Jan 2002 06:08:02 +0000 (06:08 +0000)]
Also capture received data

22 years agostruct cli_state remembers the pipe name that it's talking to, if any,
Martin Pool [Wed, 2 Jan 2002 05:39:49 +0000 (05:39 +0000)]
struct cli_state remembers the pipe name that it's talking to, if any,
so that we can print it in later debug messages.

Call prs_dump to dump out requests sent by the client at sufficiently
high debug levels.

22 years agostruct cli_state remembers the pipe name that it's talking to, if any,
Martin Pool [Wed, 2 Jan 2002 05:38:09 +0000 (05:38 +0000)]
struct cli_state remembers the pipe name that it's talking to, if any,
so that we can print it in later debug messages.

22 years agoMinor update to make the output 'real C'. (The output is intended to be a C
Andrew Bartlett [Wed, 2 Jan 2002 03:54:40 +0000 (03:54 +0000)]
Minor update to make the output 'real C'.  (The output is intended to be a C
format table for inclusion back into Samba).

Andrew Bartlett

22 years agoRemoved reference to rpc_client/cli_netlogon.o from dependencies for
Tim Potter [Wed, 2 Jan 2002 00:52:30 +0000 (00:52 +0000)]
Removed reference to rpc_client/cli_netlogon.o from dependencies for
samsync.  The libsmb version should do fine.

22 years agothe pdbedit tool manpage
Simo Sorce [Wed, 2 Jan 2002 00:40:47 +0000 (00:40 +0000)]
the pdbedit tool manpage

22 years agotry to handle broken const in headers on cray unicos
Andrew Tridgell [Tue, 1 Jan 2002 06:55:33 +0000 (06:55 +0000)]
try to handle broken const in headers on cray unicos

22 years agoThis brings the NT->DOS error mapping into better line with what NT does.
Andrew Bartlett [Tue, 1 Jan 2002 06:16:43 +0000 (06:16 +0000)]
This brings the NT->DOS error mapping into better line with what NT does.

I'll post the changes to the actual map to the list for comment, but this fixes
the 'unknown' case.

Andrew Bartlett

22 years agoAdd a function to convert 'NT_STATUS...' strings back into their actual error
Andrew Bartlett [Tue, 1 Jan 2002 05:52:02 +0000 (05:52 +0000)]
Add a function to convert 'NT_STATUS...' strings back into their actual error
code.

Andrew Bartlett

22 years agoAllow usernames in the form of 'NT_STATUS_....' to map to that as the error
Andrew Bartlett [Tue, 1 Jan 2002 05:51:03 +0000 (05:51 +0000)]
Allow usernames in the form of 'NT_STATUS_....' to map to that as the error
when using the 'name_to_ntstatus' auth module.

This could be useful in testing.

Andrew Bartlett

22 years agoNow that winbind doesn't rely on this, we may as well remove it...
Andrew Bartlett [Tue, 1 Jan 2002 05:49:27 +0000 (05:49 +0000)]
Now that winbind doesn't rely on this, we may as well remove it...

Andrew Bartlett

22 years agoFurther rpc_client removal, this time from winbindd.
Andrew Bartlett [Tue, 1 Jan 2002 04:50:45 +0000 (04:50 +0000)]
Further rpc_client removal, this time from winbindd.

Also removed the dependency on auth_util.o, which makes things nicer.

Finally, this kills off the NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
makefile variable - becouse Samba dependencies are starting to be sane again!

Andrew Bartlett

22 years agorenamed ans1.h to asn_1.h to prevent conflict caused by krb5 headers
Andrew Tridgell [Tue, 1 Jan 2002 04:05:10 +0000 (04:05 +0000)]
renamed ans1.h to asn_1.h to prevent conflict caused by krb5 headers
on some platforms using "" instead of <> in include statements

22 years agoA farily large commit:
Andrew Bartlett [Tue, 1 Jan 2002 03:10:32 +0000 (03:10 +0000)]
A farily large commit:

 - Move rpc_client/cli_trust.c to smbd/change_trust_pw.c
  - It hasn't been used by anything else since smbpasswd lost its -j

 - Add a TALLOC_CTX to the auth subsytem.  These are only valid for the length
   of the calls to the individual modules, if you want a longer context hide it
   in your private data.

   Similarly, all returns (like the server_info) should still be malloced.

 - Move the 'ntdomain' module (security=domain in oldspeak) over to use the new
   libsmb domain logon code.  Also rework much of the code to use some better
   helper functions for the connection - getting us much better error returns
   (the new code is NTSTATUS).

   The only remaining thing to do is to figure out if tpot's 0xdead 0xbeef for
   the LUID feilds is sufficient, or if we should do random LUIDs as per the old
   code.

   Similarly, I'll move winbind over to this when I get a chance.

This leaves the SPOOLSS code and some cli_pipe code as the only stuff still in
rpc_client, at least as far as smbd is concerned.

While I've given this a basic rundown, any testing is as always appriciated.

Andrew Bartlett

22 years agoAdd a specialised version of tpot's libsmb samlogon code for use with
Andrew Bartlett [Tue, 1 Jan 2002 02:34:29 +0000 (02:34 +0000)]
Add a specialised version of tpot's libsmb samlogon code for use with
presupplied challange-response pairs, and only using the 'network' version.

This will be used to move the auth subsystem over to a libsmb (rather than
rpc_client) base.

Andrew Bartlett

22 years agoFix up C99 comment.
Andrew Bartlett [Tue, 1 Jan 2002 02:31:32 +0000 (02:31 +0000)]
Fix up C99 comment.
// -> /* */

22 years agoNamed constants are always much better than magic numbers...
Andrew Bartlett [Tue, 1 Jan 2002 00:18:47 +0000 (00:18 +0000)]
Named constants are always much better than magic numbers...
(I defined the constants when I put in 'net rpc shutdown')

Andrew Bartlett

22 years agolast_enum not used.
Jeremy Allison [Mon, 31 Dec 2001 23:24:48 +0000 (23:24 +0000)]
last_enum not used.
Jeremy.

22 years agoFixed enumeration of a large (<1500) users from a Samba PDC to a W2k
Jeremy Allison [Mon, 31 Dec 2001 22:37:51 +0000 (22:37 +0000)]
Fixed enumeration of a large (<1500) users from a Samba PDC to a W2k
member server. Firstly, use the same max enumeration size (0x400) as W2K
uses, otherwise W2K won't ask for any more. Secondly, if a enumeration
request with a non-zero offset comes in on a handle that hasn't started
an enumeration, don't bitch about it (return NT_STATUS_UNSUCCESSFUL),
just load the db on that handle and return at that offset.
Jeremy.

22 years agoadded a simple test to see whether building shared libraries actually
Andrew Tridgell [Mon, 31 Dec 2001 22:10:24 +0000 (22:10 +0000)]
added a simple test to see whether building shared libraries actually
works

22 years agoops, froget to set the values.
Simo Sorce [Mon, 31 Dec 2001 16:01:04 +0000 (16:01 +0000)]
ops, froget to set the values.
jerry, can you look at theis where we use standard_sub_advanced() fns?
I think this structure should be backported to 2.2 because we do not know if the SAM_ACCOUNT strings have enough space to contain the "substituted" string.
(Yes, just now we know they are pstrings, but we may change them into alloced one, I'm a strong suported of alloced strings as 1024 bytes are not always enough and are often too much)

22 years agoconst religion
Simo Sorce [Mon, 31 Dec 2001 15:48:32 +0000 (15:48 +0000)]
const religion

22 years agoport mods from 2.2
Simo Sorce [Mon, 31 Dec 2001 15:48:03 +0000 (15:48 +0000)]
port mods from 2.2

22 years agoreverted to 1.24 and manually merged in changes from 2.2
Gerald Carter [Mon, 31 Dec 2001 14:39:26 +0000 (14:39 +0000)]
reverted to 1.24 and manually merged in changes from 2.2

22 years agocope with systems that don't have full gssapi libs
Andrew Tridgell [Mon, 31 Dec 2001 14:31:13 +0000 (14:31 +0000)]
cope with systems that don't have full gssapi libs

22 years agomore irix -64 portability fixes
Andrew Tridgell [Mon, 31 Dec 2001 14:05:22 +0000 (14:05 +0000)]
more irix -64 portability fixes

22 years ago- portablitity fixes for cc -64 on irix
Andrew Tridgell [Mon, 31 Dec 2001 13:46:26 +0000 (13:46 +0000)]
- portablitity fixes for cc -64 on irix
- fixed gid* bug in rpc_server

22 years agoEnsure the output cli can't have spurious values if the connection fails...
Andrew Bartlett [Mon, 31 Dec 2001 13:06:10 +0000 (13:06 +0000)]
Ensure the output cli can't have spurious values if the connection fails...

22 years agoAdd 'net rpc shutdown' and 'net rpc abortshutdown'.
Andrew Bartlett [Mon, 31 Dec 2001 13:00:59 +0000 (13:00 +0000)]
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

22 years agoFix up the comment in the copyright header
Andrew Bartlett [Mon, 31 Dec 2001 12:50:44 +0000 (12:50 +0000)]
Fix up the comment in the copyright header

22 years agoGive the main loop talloc context a name (using mbp's new talloc naming
Andrew Bartlett [Mon, 31 Dec 2001 12:41:24 +0000 (12:41 +0000)]
Give the main loop talloc context a name (using mbp's new talloc naming
system).

Andrew Bartlett

22 years agoMake --with-tdbsam compile again, given the new 'am I setting a default' flags.
Andrew Bartlett [Mon, 31 Dec 2001 11:25:48 +0000 (11:25 +0000)]
Make --with-tdbsam compile again, given the new 'am I setting a default' flags.

Andrew Bartlett

22 years agoAllow this to build without LDAP, as per the example below it.
Andrew Bartlett [Mon, 31 Dec 2001 11:14:38 +0000 (11:14 +0000)]
Allow this to build without LDAP, as per the example below it.

Andrew Bartlett

22 years agofix compile error
Gerald Carter [Mon, 31 Dec 2001 02:04:08 +0000 (02:04 +0000)]
fix compile error

22 years agoremoved extern samlogon_user
Gerald Carter [Mon, 31 Dec 2001 01:56:05 +0000 (01:56 +0000)]
removed extern samlogon_user

22 years agoremove samlogon_user
Gerald Carter [Mon, 31 Dec 2001 00:09:15 +0000 (00:09 +0000)]
remove samlogon_user

22 years agosome merges from 2.2. Still need to merge in changes from pdb_tdb.c
Gerald Carter [Mon, 31 Dec 2001 00:06:51 +0000 (00:06 +0000)]
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.

22 years agofreeing the wrong pointer, sorry my mistake.
Simo Sorce [Sun, 30 Dec 2001 22:55:04 +0000 (22:55 +0000)]
freeing the wrong pointer, sorry my mistake.

22 years agoUnicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>
Tim Potter [Sun, 30 Dec 2001 21:25:46 +0000 (21:25 +0000)]
Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>

22 years agoutil_sid.c - respect a const variabile (addedd strdup)
Simo Sorce [Sun, 30 Dec 2001 19:21:25 +0000 (19:21 +0000)]
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

22 years agoAdd a pile of doxygen style comments to various parts of Samba. Many of these
Andrew Bartlett [Sun, 30 Dec 2001 10:54:58 +0000 (10:54 +0000)]
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

22 years agoFinally remove these files, which moved (by cvs backend magic) to source/auth
Andrew Bartlett [Sun, 30 Dec 2001 10:50:46 +0000 (10:50 +0000)]
Finally remove these files, which moved (by cvs backend magic) to source/auth
at the start of the month.

22 years agoFinish idra's cleanup of the RPC remote shutdown code.
Andrew Bartlett [Sun, 30 Dec 2001 10:19:56 +0000 (10:19 +0000)]
Finish idra's cleanup of the RPC remote shutdown code.

22 years agoremove unneaded memory leaking code.
Simo Sorce [Sun, 30 Dec 2001 08:37:34 +0000 (08:37 +0000)]
remove unneaded memory leaking code.

22 years agoFix the compile on systems without a full kerberos kit.
Andrew Bartlett [Sun, 30 Dec 2001 06:20:23 +0000 (06:20 +0000)]
Fix the compile on systems without a full kerberos kit.

Andrew Bartlett

22 years agoMake Samba compile on RH 6.2 again.
Andrew Bartlett [Sun, 30 Dec 2001 05:59:43 +0000 (05:59 +0000)]
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

22 years agoWhen running interactive we want to set our own process group for
Jeremy Allison [Sun, 30 Dec 2001 01:46:38 +0000 (01:46 +0000)]
When running interactive we want to set our own process group for
signal management.
Jeremy.

22 years agopdb_getsampwnuid() merge from 2.2
Gerald Carter [Sun, 30 Dec 2001 00:03:47 +0000 (00:03 +0000)]
pdb_getsampwnuid() merge from 2.2

22 years agoDocumented -i modes for nmbd/smbd.
Jeremy Allison [Sat, 29 Dec 2001 21:15:40 +0000 (21:15 +0000)]
Documented -i modes for nmbd/smbd.
Jeremy.

22 years agoFixup -i interactive modes.
Jeremy Allison [Sat, 29 Dec 2001 21:13:53 +0000 (21:13 +0000)]
Fixup -i interactive modes.
Jeremy.

22 years agoRemoved extra lp_adduser() call.
Jeremy Allison [Sat, 29 Dec 2001 20:29:43 +0000 (20:29 +0000)]
Removed extra lp_adduser() call.
Fixed up error returns in get_correct_cversion().
Jeremy.

22 years agofile Samba-LDAP-HOWTO.sgml was initially added on branch SAMBA_2_2.
Gerald Carter [Sat, 29 Dec 2001 16:20:49 +0000 (16:20 +0000)]
file Samba-LDAP-HOWTO.sgml was initially added on branch SAMBA_2_2.

22 years agopassing NULL to print_queue_status()'s status parameter could end in a segfault
Simo Sorce [Sat, 29 Dec 2001 09:52:24 +0000 (09:52 +0000)]
passing NULL to print_queue_status()'s status parameter could end in a segfault

22 years agoremoved unused files
Gerald Carter [Fri, 28 Dec 2001 02:28:39 +0000 (02:28 +0000)]
removed unused files

22 years agomerge from 2.2
Gerald Carter [Fri, 28 Dec 2001 02:03:36 +0000 (02:03 +0000)]
merge from 2.2

22 years agomoving SAM_ACCOUNT to include a bit field for initialized
Gerald Carter [Thu, 27 Dec 2001 06:38:04 +0000 (06:38 +0000)]
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

22 years agosync with 2.2
Gerald Carter [Wed, 26 Dec 2001 05:35:40 +0000 (05:35 +0000)]
sync with 2.2

22 years agomerge Jeremy's gcc3 warning fix from 2.2
Herb Lewis [Sat, 22 Dec 2001 01:15:58 +0000 (01:15 +0000)]
merge Jeremy's gcc3 warning fix from 2.2

22 years agosync up packaging scripts
Herb Lewis [Sat, 22 Dec 2001 00:54:10 +0000 (00:54 +0000)]
sync up packaging scripts

22 years agomerge IRIX winbind support from Samba 2.2 branch
Herb Lewis [Sat, 22 Dec 2001 00:51:32 +0000 (00:51 +0000)]
merge IRIX winbind support from Samba 2.2 branch

22 years agoRemoved unused variables.
Jeremy Allison [Fri, 21 Dec 2001 23:28:04 +0000 (23:28 +0000)]
Removed unused variables.
Jeremy.

22 years agoThe jf_get_sampasswd_entries() is not used anymore.
Jeremy Allison [Fri, 21 Dec 2001 23:25:32 +0000 (23:25 +0000)]
The jf_get_sampasswd_entries() is not used anymore.
Jeremy.

22 years agoadded a copyright notice.
Jean-François Micouleau [Fri, 21 Dec 2001 22:54:53 +0000 (22:54 +0000)]
added a copyright notice.

J.F.

22 years agodoesn't keep track of the struct's size we enumerate. W2K doesn't
Jean-François Micouleau [Fri, 21 Dec 2001 22:34:49 +0000 (22:34 +0000)]
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.

22 years agoFixup some DEBUG statements (0 -> 10).
Jeremy Allison [Fri, 21 Dec 2001 22:27:20 +0000 (22:27 +0000)]
Fixup some DEBUG statements (0 -> 10).
Jeremy.

22 years agoclose some handles. not really necessary but doesn't hurt.
Jean-François Micouleau [Fri, 21 Dec 2001 22:18:06 +0000 (22:18 +0000)]
close some handles. not really necessary but doesn't hurt.

J.F.

22 years agomerge from 2.2
Gerald Carter [Fri, 21 Dec 2001 20:04:22 +0000 (20:04 +0000)]
merge from 2.2

22 years agoUse pdb_free_sam() to free a SAM_ACCOUNT struct, not safe_free(). There
Jeremy Allison [Fri, 21 Dec 2001 19:34:32 +0000 (19:34 +0000)]
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.

22 years agoadded all level to samr_query_disp_info rpcclient side.
Jean-François Micouleau [Fri, 21 Dec 2001 13:38:07 +0000 (13:38 +0000)]
added all level to samr_query_disp_info rpcclient side.

J.F.

22 years agoLarge expansion of my german book project.
Volker Lendecke [Fri, 21 Dec 2001 13:37:39 +0000 (13:37 +0000)]
Large expansion of my german book project.

Volker

22 years agore-done all of samr_query_disp_info()
Jean-François Micouleau [Fri, 21 Dec 2001 13:36:14 +0000 (13:36 +0000)]
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.

22 years agoput back the -l option to rpcclient.
Jean-François Micouleau [Fri, 21 Dec 2001 13:30:55 +0000 (13:30 +0000)]
put back the -l option to rpcclient.
that's the most useful option in this tool !

I love rpcclient ;-)

J.F.

22 years ago- handle kerberos session setup reply with broken null termination
Andrew Tridgell [Fri, 21 Dec 2001 12:29:51 +0000 (12:29 +0000)]
- handle kerberos session setup reply with broken null termination
- don't display Domain=[] for auth protocols that don't give us a domain

22 years agotry to handle end of packet for not null terminated domain strings
Andrew Tridgell [Fri, 21 Dec 2001 11:58:30 +0000 (11:58 +0000)]
try to handle end of packet for not null terminated domain strings

22 years agoupdated ldap test to test for less common function
Andrew Tridgell [Fri, 21 Dec 2001 11:20:59 +0000 (11:20 +0000)]
updated ldap test to test for less common function

22 years agofixed a typo in vsyslog()
Andrew Tridgell [Fri, 21 Dec 2001 11:04:14 +0000 (11:04 +0000)]
fixed a typo in vsyslog()

22 years agoremove duplicate lines
Herb Lewis [Fri, 21 Dec 2001 05:13:36 +0000 (05:13 +0000)]
remove duplicate lines

22 years agosmbcontrol in non-interactive mode was returning True for success --
Martin Pool [Fri, 21 Dec 2001 04:33:28 +0000 (04:33 +0000)]
smbcontrol in non-interactive mode was returning True for success --
need to invert this to give the shell 0.

22 years agoAdd option to pass NULL max_replies to wait_for_replies in case you
Martin Pool [Fri, 21 Dec 2001 04:30:58 +0000 (04:30 +0000)]
Add option to pass NULL max_replies to wait_for_replies in case you
don't know how many to expect.