Andrew Tridgell [Thu, 5 Sep 2002 03:06:26 +0000 (03:06 +0000)]
initial mem_ctx to NULL
patch from metze
Tim Potter [Thu, 5 Sep 2002 02:00:14 +0000 (02:00 +0000)]
The new popt_common_debug code obviates the need to muck around with
AllowDebugChange, saving the debuglevel across lp_load() calls etc.
Jeremy Allison [Wed, 4 Sep 2002 23:40:49 +0000 (23:40 +0000)]
Added better error code on out of space. Removed total jobs check - not
applicable any more.
Jeremy.
Andrew Bartlett [Wed, 4 Sep 2002 22:02:53 +0000 (22:02 +0000)]
Only cache the user list on the SAMR handle for a particular
acb_mask/all_machines flag combination. The avoids a bug where we were listing
users in the 'trusting domains' dialog in usrmgr.
We might also need to invalidate the cache for some other SAMR actions.
Andrew Bartlett
Jeremy Allison [Wed, 4 Sep 2002 21:59:38 +0000 (21:59 +0000)]
Merge ... (apparently working :-) new printing notify code.
Jeremy.
Jeremy Allison [Wed, 4 Sep 2002 19:13:06 +0000 (19:13 +0000)]
Add bcast_msg_flags to connection struct. Allows sender to filter when
sending broadcast messages. Also initial cut-down of printing notify
messages (not yet finished).
Jeremy.
Andrew Tridgell [Wed, 4 Sep 2002 10:58:42 +0000 (10:58 +0000)]
don't use ENCTYPE_ARCFOUR_HMAC unless the kerberos lib supports it
Andrew Bartlett [Wed, 4 Sep 2002 08:08:03 +0000 (08:08 +0000)]
Set default ACB attributes on 'unixsam' accounts. This means that machine
accounts added first to /etc/passwd will be honered correctly. Also, users
'upgraded' to smbpasswd will have the right flags.
Andrew Bartlett
Tim Potter [Wed, 4 Sep 2002 04:30:41 +0000 (04:30 +0000)]
Fix typo in comment.
Tim Potter [Wed, 4 Sep 2002 02:57:16 +0000 (02:57 +0000)]
Quietened some debugs.
Gerald Carter [Wed, 4 Sep 2002 01:15:01 +0000 (01:15 +0000)]
remove inet_aton()
Gerald Carter [Wed, 4 Sep 2002 01:14:24 +0000 (01:14 +0000)]
DeletePrinterDriver[Ex]() fixes from APP_HEAD
Richard Sharpe [Tue, 3 Sep 2002 21:35:26 +0000 (21:35 +0000)]
Fix the struct_blob.
Jeremy Allison [Tue, 3 Sep 2002 20:10:25 +0000 (20:10 +0000)]
Ensure we open UNIX fifo's non-blocking like we used to do.
Jeremy.
Jeremy Allison [Tue, 3 Sep 2002 19:19:20 +0000 (19:19 +0000)]
Fix crashbug discovered by "Kim R. Pedersen" <krp@filanet.dk> where
cli struct was being deallocated in a called function.
Jeremy.
Jeremy Allison [Tue, 3 Sep 2002 19:18:12 +0000 (19:18 +0000)]
Formatting tidyup and additon of cli_close_connection() before bugfix.
Jeremy.
Richard Sharpe [Tue, 3 Sep 2002 17:36:00 +0000 (17:36 +0000)]
Fix the client side NTLMSSP. It now works between smbclient and smbd!
However, it does not work with Win2K over 445 with raw NTLMSSP!
Richard Sharpe [Tue, 3 Sep 2002 06:34:40 +0000 (06:34 +0000)]
Parse the NTLMSSP Challenge in cliconnect.c.
This gets us closer ... Should have the challenge now. Need to check that it works.
Tim Potter [Tue, 3 Sep 2002 05:35:47 +0000 (05:35 +0000)]
Conver cli_spoolss routines to use REGISTRY_VALUE and REGVAL_CTR code. Nice one jerry!
(Hey I thought I checked this in already?)
Tim Potter [Tue, 3 Sep 2002 05:00:17 +0000 (05:00 +0000)]
Convert to new REGISTRY_VALUE cli_spoolss routines.
Tim Potter [Tue, 3 Sep 2002 04:58:36 +0000 (04:58 +0000)]
Fixed enumjobs command to use new JOB_INFO_CTR structure.
Tim Potter [Tue, 3 Sep 2002 04:56:39 +0000 (04:56 +0000)]
Fix setprinterdata rpcclient command to use new cli_spoolss_setprinterdata
function. Also fixed crash bug - I don't think anyone uses this
command anymore...
Richard Sharpe [Tue, 3 Sep 2002 04:10:58 +0000 (04:10 +0000)]
Make sure that an NTLMSSP negotiate blob has the correct stuff in it!
Richard Sharpe [Tue, 3 Sep 2002 03:53:50 +0000 (03:53 +0000)]
Add type A to the small MSRPC generator ...
Richard Sharpe [Tue, 3 Sep 2002 03:48:28 +0000 (03:48 +0000)]
The session key in NTLMSSP AUTH blobs is actually an empty string.
Also, the negotiate blob has two ASCI strings encoded in the same way that the
UNICODE strings are, they are just in ASCII. The PARSER and Generator will have to deal with that.
Tim Potter [Tue, 3 Sep 2002 03:21:53 +0000 (03:21 +0000)]
Implemented client function for deleteprinterdataex.
Tim Potter [Tue, 3 Sep 2002 03:20:21 +0000 (03:20 +0000)]
Change JOB_INFO_CTR to return a pointer to an array rather than array of pointers.
Tim Potter [Tue, 3 Sep 2002 03:18:19 +0000 (03:18 +0000)]
Change JOB_INFO_CTR to return a pointer to an array rather than array of pointers.
Implemented client function for deleteprinterdataex.
Tim Potter [Tue, 3 Sep 2002 01:56:05 +0000 (01:56 +0000)]
Display printerdata values in hex.
Tim Potter [Tue, 3 Sep 2002 01:55:21 +0000 (01:55 +0000)]
Added utility function to convert python strings to hex dump + ascii.
Tim Potter [Tue, 3 Sep 2002 01:48:24 +0000 (01:48 +0000)]
A printerdata browser I whipped up in about 5 minutes. (-:
Usage: gprinterdata //win2kdc1/fooprinter
Tim Potter [Tue, 3 Sep 2002 01:32:05 +0000 (01:32 +0000)]
Rewrote to use gtkdictbrowser.
Tim Potter [Tue, 3 Sep 2002 01:30:26 +0000 (01:30 +0000)]
Ignore *.pyc files.
Tim Potter [Tue, 3 Sep 2002 01:10:21 +0000 (01:10 +0000)]
Implement deleteprinterdataex
Tim Potter [Tue, 3 Sep 2002 00:40:06 +0000 (00:40 +0000)]
Return dictionary of printerdata in enumprinterdataex.
Tim Potter [Tue, 3 Sep 2002 00:26:19 +0000 (00:26 +0000)]
Return data from enumprinterdataex by deep copying on passed in tdb context.
Volker Lendecke [Mon, 2 Sep 2002 13:47:51 +0000 (13:47 +0000)]
usrmgr expects unicode as ProductType.
This looks a bit like a hack ;-)
Volker
Jelmer Vernooij [Mon, 2 Sep 2002 10:58:03 +0000 (10:58 +0000)]
Fix typo - Thanks Kai
Volker Lendecke [Mon, 2 Sep 2002 09:02:40 +0000 (09:02 +0000)]
small typo, kai is german :-)
Tim Potter [Mon, 2 Sep 2002 07:47:42 +0000 (07:47 +0000)]
Add a 'key' field to printer data dictionary.
Implemented getprinterdataex, setprinterdataex and enumprinterdataex
(doesn't quite work yet).
Tim Potter [Mon, 2 Sep 2002 07:44:48 +0000 (07:44 +0000)]
make proto
Tim Potter [Mon, 2 Sep 2002 07:44:00 +0000 (07:44 +0000)]
Added methods for getprinterdataex, setprinterdataex and enumprinterdataex.
Tim Potter [Mon, 2 Sep 2002 07:42:39 +0000 (07:42 +0000)]
Fix transposed args in open_pipe_creds() function.
Tim Potter [Mon, 2 Sep 2002 07:41:12 +0000 (07:41 +0000)]
Implemented some more client side spoolss functions:
- getprinterdataex(), setprinterdataex(), enumprinterdataex()
Pass data type down to setprinterdata() fn instead of hardcoding REG_SZ.
Did some trickyness to get enumprinterdataex replies unmarshalled
properly. The code seems to have been written to require the number
of entries returned before unpacking said entries. Skip to the end of
the response and read the number of entries then jump back and process
the printer data.
Tim Potter [Mon, 2 Sep 2002 07:37:35 +0000 (07:37 +0000)]
Implemented some more client side spoolss functions:
- getprinterdataex(), setprinterdataex(), enumprinterdataex()
Pass data type down to setprinterdata() fn instead of hardcoding REG_SZ
Simo Sorce [Sun, 1 Sep 2002 10:24:34 +0000 (10:24 +0000)]
wrong way to handle things, bug found by kai
Volker Lendecke [Sun, 1 Sep 2002 07:52:54 +0000 (07:52 +0000)]
Fix segfault in net command
Richard Sharpe [Sat, 31 Aug 2002 16:17:36 +0000 (16:17 +0000)]
Convert M_DEBUG(0 to M_DEBUG(10 for non-error cases ...
Andrew Bartlett [Sat, 31 Aug 2002 08:51:38 +0000 (08:51 +0000)]
Add a dash of static.
Andrew Bartlett [Sat, 31 Aug 2002 06:59:00 +0000 (06:59 +0000)]
Add a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements to
'DEBUGADD', so we don't repeat headers. (Makes them much easier to read).
(Based on patch by kai)
Andrew Bartlett
Andrew Bartlett [Sat, 31 Aug 2002 06:38:27 +0000 (06:38 +0000)]
Avoid writing unitialised bytes to the wire (and consequent valgrind warnings)
by zeroing them out if they don't have meaning.
Andrew Bartlett
Andrew Bartlett [Fri, 30 Aug 2002 23:56:37 +0000 (23:56 +0000)]
Add a fix for 'query_disp_info level 2', which should return all machines in
the DC's SAM. We were only returning workstations, not PDCs or BDCs.
Win2k's 'Computer Manager' tool uses this to list all computers in the domain
(as opposed to using NetBIOS).
Andrew Bartlett
Jeremy Allison [Fri, 30 Aug 2002 19:29:59 +0000 (19:29 +0000)]
Fix bug with stat mode open being done on read-only open with
truncate.
Jeremy.
Jeremy Allison [Fri, 30 Aug 2002 19:06:07 +0000 (19:06 +0000)]
Correct error message.
Jeremy.
Jeremy Allison [Fri, 30 Aug 2002 18:57:23 +0000 (18:57 +0000)]
Correctly fail opens with mismatching SYSTEM or HIDDEN attributes if we
are mapping system or hidden.
Jeremy.
Herb Lewis [Fri, 30 Aug 2002 18:56:46 +0000 (18:56 +0000)]
off by one in writing to malloced array. this fixes smbd crash I saw at
the CIFS conference - finally got purify working
Jeremy Allison [Fri, 30 Aug 2002 18:56:00 +0000 (18:56 +0000)]
Better error reporting on OPEN test.
Jeremy.
Jelmer Vernooij [Fri, 30 Aug 2002 18:01:26 +0000 (18:01 +0000)]
Put PRINTER_DRIVER back in
Jeremy Allison [Fri, 30 Aug 2002 17:22:33 +0000 (17:22 +0000)]
Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy.
Gerald Carter [Fri, 30 Aug 2002 14:48:33 +0000 (14:48 +0000)]
fix up print portion of registry. Merge from APP_HEAD.
Herb Lewis [Fri, 30 Aug 2002 14:05:22 +0000 (14:05 +0000)]
based on function prototype, the args were switched - this gave an error
on the IRIX compiler. could whoever put the FIXME message take a look and
see if it is still broken.
Gerald Carter [Fri, 30 Aug 2002 12:46:54 +0000 (12:46 +0000)]
fix proto
Jean-François Micouleau [Fri, 30 Aug 2002 11:57:06 +0000 (11:57 +0000)]
allow rpcclient's samlogon command to use cli_net_3().
J.F.
Gerald Carter [Fri, 30 Aug 2002 11:38:39 +0000 (11:38 +0000)]
fix broken dependencies....
Gerald Carter [Fri, 30 Aug 2002 11:03:44 +0000 (11:03 +0000)]
break out REGISTRY_VALUE & REGVAL_CR objects into separate file for
cleaning linking....
Gerald Carter [Fri, 30 Aug 2002 10:47:34 +0000 (10:47 +0000)]
merge of phant0m key fix from APP_HEAD
Jean-François Micouleau [Fri, 30 Aug 2002 10:46:59 +0000 (10:46 +0000)]
added cli_net_auth_3 client code.
changed cli_nt_setup_creds() to call cli_net_auth_2 or cli_net_auth_3 based on a switch.
pass also the negociation flags all the way.
all the places calling cli_nt_setup_creds() are still using cli_net_aut2(), it's just for future use and for rpcclient.
in the future we will be able to call auth_2 or auth_3 as we want.
J.F.
Volker Lendecke [Fri, 30 Aug 2002 08:24:26 +0000 (08:24 +0000)]
Removed some misleading comment.
Volker
Andrew Tridgell [Fri, 30 Aug 2002 06:59:57 +0000 (06:59 +0000)]
convert the LDAP/SASL code to use GSS-SPNEGO if possible
we now do this:
- look for suported SASL mechanisms on the LDAP server
- choose GSS-SPNEGO if possible
- within GSS-SPNEGO choose KRB5 if we can do a kinit
- otherwise use NTLMSSP
This change also means that we no longer rely on having a gssapi
library to do ADS.
todo:
- add TLS/SSL support over LDAP
- change to using LDAP/SSL for password change in ADS
Andrew Tridgell [Fri, 30 Aug 2002 06:56:12 +0000 (06:56 +0000)]
ensure that we unlock in case we hit a tdb error
Andrew Tridgell [Fri, 30 Aug 2002 06:55:27 +0000 (06:55 +0000)]
removed a debug line
Jelmer Vernooij [Fri, 30 Aug 2002 06:44:07 +0000 (06:44 +0000)]
Remove obsolete documents
Andrew Bartlett [Fri, 30 Aug 2002 06:27:17 +0000 (06:27 +0000)]
paranoid server security defaults to yes
Tim Potter [Fri, 30 Aug 2002 02:43:51 +0000 (02:43 +0000)]
Forgot to check in some of the libsmb stuff.
Tim Potter [Fri, 30 Aug 2002 01:35:56 +0000 (01:35 +0000)]
Abstract out the functionality of gtdbtool into a dictionary browser
class. This should provide a nice framework for browsing any kind of
data presented as a python dictionary:
- windows registry
- printer data
- tdb files
Andrew Tridgell [Thu, 29 Aug 2002 23:23:42 +0000 (23:23 +0000)]
fix connecting to a BDC when the PDC is down but in WINS and no bcast
can be used to find a BDC
2nd try ....
Andrew Tridgell [Thu, 29 Aug 2002 23:16:45 +0000 (23:16 +0000)]
fix connecting to a BDC when the PDC is down but in WINS and no bcast
can be used to find a BDC
Jelmer Vernooij [Thu, 29 Aug 2002 20:43:08 +0000 (20:43 +0000)]
Several small fixes
Jelmer Vernooij [Thu, 29 Aug 2002 20:14:34 +0000 (20:14 +0000)]
Split up documents at chapter level, not at sect1 level
Andrew Bartlett [Thu, 29 Aug 2002 17:36:44 +0000 (17:36 +0000)]
We don't need the RTLD_GLOBAL.
Jelmer Vernooij [Thu, 29 Aug 2002 17:08:13 +0000 (17:08 +0000)]
Adding makefile for sam_skel module
Jelmer Vernooij [Thu, 29 Aug 2002 16:39:00 +0000 (16:39 +0000)]
SAM_CONTEXT is const
Jelmer Vernooij [Thu, 29 Aug 2002 16:38:43 +0000 (16:38 +0000)]
Move samr_make_sam_obj_sd to lib/util_seaccess.c. samtest now compiles and
links successfully!
Jelmer Vernooij [Thu, 29 Aug 2002 16:37:39 +0000 (16:37 +0000)]
Correct popt argument info in vfstest
Don't use global_ctx in samtest.c
Jelmer Vernooij [Thu, 29 Aug 2002 16:36:37 +0000 (16:36 +0000)]
Use popt for --help
Jelmer Vernooij [Thu, 29 Aug 2002 16:35:33 +0000 (16:35 +0000)]
Make debuglevel a string for use with debug classes
Jelmer Vernooij [Thu, 29 Aug 2002 16:18:59 +0000 (16:18 +0000)]
Remove more obsolete documents
Jelmer Vernooij [Thu, 29 Aug 2002 16:17:26 +0000 (16:17 +0000)]
Add cifsntdomain
Jelmer Vernooij [Thu, 29 Aug 2002 13:28:17 +0000 (13:28 +0000)]
Add more documents to the developers guide
Jelmer Vernooij [Thu, 29 Aug 2002 12:44:37 +0000 (12:44 +0000)]
Forgot to remove old usage() function
Jelmer Vernooij [Thu, 29 Aug 2002 12:05:30 +0000 (12:05 +0000)]
Use popt for printing --help message
Jelmer Vernooij [Thu, 29 Aug 2002 11:17:14 +0000 (11:17 +0000)]
Don't use global memory context
Jelmer Vernooij [Thu, 29 Aug 2002 10:42:29 +0000 (10:42 +0000)]
Adding samtest utility used to test sam backends. Compiles but doesn't do
anything (yet). Requires move from samr_make_sam_obj_sd to lib/
Volker Lendecke [Thu, 29 Aug 2002 10:36:05 +0000 (10:36 +0000)]
There's more work to be done on samsync. Intermediate commit, now
I get all the groups at least.
Volker
Jelmer Vernooij [Thu, 29 Aug 2002 09:42:36 +0000 (09:42 +0000)]
Several compiler warning fixes + fix dependencies samtest
Jelmer Vernooij [Thu, 29 Aug 2002 09:20:49 +0000 (09:20 +0000)]
small fixes
make lp_sam_backend() a list
Andrew Bartlett [Thu, 29 Aug 2002 08:09:19 +0000 (08:09 +0000)]
I think this should fix the compile on some of the CUPS based machines.
Andrew Bartlett
Andrew Tridgell [Thu, 29 Aug 2002 08:00:15 +0000 (08:00 +0000)]
show builtin groups in samdump
Jelmer Vernooij [Thu, 29 Aug 2002 07:40:26 +0000 (07:40 +0000)]
RTLD_GLOBAL is not necessary
Jelmer Vernooij [Thu, 29 Aug 2002 07:35:18 +0000 (07:35 +0000)]
Add plugin support for the sam system from metze (based on passdb code)