kai/samba.git
21 years agopatch from metze: add a 'vfs' debug class
Andrew Bartlett [Fri, 6 Sep 2002 11:58:18 +0000 (11:58 +0000)]
patch from metze:  add a 'vfs' debug class
(This used to be commit 601b56e04fddd9ddfb9be5b0a625d6d279df7f4c)

21 years agoRevert accidental commit - I'll need to do a fair bit more testing before I
Andrew Bartlett [Fri, 6 Sep 2002 11:49:16 +0000 (11:49 +0000)]
Revert accidental commit - I'll need to do a fair bit more testing before I
commit changes to NTLMSSP flags.
(This used to be commit d200770796d871b3994a06fab45624068fdc5682)

21 years agoPatch from "Stefan (metze) Metzmacher" <metze@metzemix.de>
Andrew Bartlett [Fri, 6 Sep 2002 11:46:59 +0000 (11:46 +0000)]
Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de>
to extend the ADS_STATUS system to include NTSTATUS, and to provide a better
general infrustructure for his sam_ads work.

I've also added some extra failure mode DEBUG()s to parts of the code.

NOTE:  The ADS_ERR_OK() macro is rather sensitive to braketing issues - without
the final set of brakets, the test is essentially inverted - causing some
intersting 'error = success' messages...

Andrew Bartlett
(This used to be commit 5b9a7ab901bc311f3ad08462a8a68d133c34a8b4)

21 years agoOops...
Andrew Bartlett [Fri, 6 Sep 2002 10:43:52 +0000 (10:43 +0000)]
Oops...
(This used to be commit 9a6f932da1c85a331a8427f055b5fa798dbda89b)

21 years agoAdd some DEBUG()s to some libads failure modes.
Andrew Bartlett [Fri, 6 Sep 2002 10:39:34 +0000 (10:39 +0000)]
Add some DEBUG()s to some libads failure modes.
(This used to be commit ad3c8da13b9d510f78fd56364cd0987de88a9b9f)

21 years agoOne less user of Get_Pwnam_modify()...
Andrew Bartlett [Fri, 6 Sep 2002 10:38:26 +0000 (10:38 +0000)]
One less user of Get_Pwnam_modify()...

Andrew Bartlett
(This used to be commit 06b8a6fef466e006724bc49165fe936cf8fcfbfa)

21 years agoDetect and use syslog.h or sys/syslog.h corretly. Fixes lack of prototype for
Andrew Bartlett [Fri, 6 Sep 2002 10:00:24 +0000 (10:00 +0000)]
Detect and use syslog.h or sys/syslog.h corretly.  Fixes lack of prototype for
syslog() since Paul Green's POSIX patch.
(This used to be commit d3b29b0b2d2ffd5c050900ff8cae441b91f95526)

21 years agoInitial version of printerdata_ex browsing.
Tim Potter [Fri, 6 Sep 2002 07:44:21 +0000 (07:44 +0000)]
Initial version of printerdata_ex browsing.
(This used to be commit c201a61a52ffbaf1b1b70e25e0ef2b29a89f921c)

21 years agoMove printerdata dictionary object into it's own file.
Tim Potter [Fri, 6 Sep 2002 07:34:57 +0000 (07:34 +0000)]
Move printerdata dictionary object into it's own file.
(This used to be commit c211d2deca1019d3ef9bd08f5a01e76ede2d0191)

21 years agoDecode list of dependent files in printer driver info3 and info6.
Tim Potter [Fri, 6 Sep 2002 07:01:40 +0000 (07:01 +0000)]
Decode list of dependent files in printer driver info3 and info6.

It's a null terminated list of null terminated unicode strings.  What
a mess!
(This used to be commit aae48211ff4f22e0c2e2fe57c370f465df4332bc)

21 years agolevel keys are inserted by conv routines.
Tim Potter [Fri, 6 Sep 2002 06:59:40 +0000 (06:59 +0000)]
level keys are inserted by conv routines.
(This used to be commit b5068bb9fe28cfdd7a00dbc50196eb60e3a46af1)

21 years agoDisplay debug data we are marshalling/unmarshalling a UNISTR in a
Tim Potter [Fri, 6 Sep 2002 06:13:16 +0000 (06:13 +0000)]
Display debug data we are marshalling/unmarshalling a UNISTR in a
similar format to UNISTR2.
(This used to be commit 2d227bdce26674affad87ad6d118e77604fb210a)

21 years agocli_spoolss_enumprinterdrivers:
Tim Potter [Fri, 6 Sep 2002 01:12:52 +0000 (01:12 +0000)]
cli_spoolss_enumprinterdrivers:

    Return WERR_UNKNOWN_LEVEL if we can't decode the returned buffer.
(This used to be commit 0379a32d825e036c7f0dcabef46547cd678a2a1d)

21 years agoMove the fancy NT_STATUS macros to a new file, so we can include them earlier
Andrew Bartlett [Thu, 5 Sep 2002 15:47:22 +0000 (15:47 +0000)]
Move the fancy NT_STATUS macros to a new file, so we can include them earlier
in includes.h

Andrew Bartlett
(This used to be commit ed184ed1905b49956528b6835f48a69ba3c1a045)

21 years agoRevert the "reverse" change to rpc_server/srv_spoolss_nt.c, simply
Jeremy Allison [Thu, 5 Sep 2002 12:55:56 +0000 (12:55 +0000)]
Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simply
add then entries to the end of the list in printing/notify.c using
DLIST_ADD_END.
Jeremy.
(This used to be commit 047d6a05fb60172a2607bb7d7d03dda5403c61fa)

21 years agoFixed a little, long standing bug: smbclient -M <name> should resolve
Volker Lendecke [Thu, 5 Sep 2002 11:40:06 +0000 (11:40 +0000)]
Fixed a little, long standing bug: smbclient -M <name> should resolve
name#03, not name#20.

Volker
(This used to be commit 99017e887e4189ac7f6e3b7df08f028dc155191e)

21 years agoDelivery notify messages over the back channel in *reverse* order in
Tim Potter [Thu, 5 Sep 2002 06:49:08 +0000 (06:49 +0000)]
Delivery notify messages over the back channel in *reverse* order in
which they are sent in the message.  This is because a DLIST_ADD is
used by the message sender which results in the first (post!) message
being at the end of the list.  Notify messages must be delivered in
the order the events occur in otherwise the port monitor gets
confused.
(This used to be commit d41ff1f1a6cfad71ef35698d45e9fb97d9100898)

21 years agoRemove donotify as notifies are cheap now.
Jeremy Allison [Thu, 5 Sep 2002 05:26:29 +0000 (05:26 +0000)]
Remove donotify as notifies are cheap now.
Jeremy.
(This used to be commit 78585de5811d10bcca156e296c7dd51eabe5d626)

21 years agoWe shouldn't add printing flag here.
Jeremy Allison [Thu, 5 Sep 2002 04:33:52 +0000 (04:33 +0000)]
We shouldn't add printing flag here.
Jeremy.
(This used to be commit f00102ba77d752bdf714fa83ac7fdc679e8d7f17)

21 years agoSend any queued up print notify messages in exit_server() so they
Tim Potter [Thu, 5 Sep 2002 04:33:07 +0000 (04:33 +0000)]
Send any queued up print notify messages in exit_server() so they
don't get lost if the client exits before timeout_processing()
has a chance to run.
(This used to be commit d7dde74aae64e9e142b80b7e3ba1bd69cec149b0)

21 years agoA netshareenum reply always contains an enum_hnd. win2k returns zero
Tim Potter [Thu, 5 Sep 2002 04:25:21 +0000 (04:25 +0000)]
A netshareenum reply always contains an enum_hnd.  win2k returns zero
total entries on an error whereas nt4 must send uninitialised data so
we didn't catch this one before.
(This used to be commit 88653130bc1e380b7d8dc6c62492f3bbc6f1c707)

21 years agoRoussed on Jeremy for not putting in enough debugs in the new print
Tim Potter [Thu, 5 Sep 2002 04:22:16 +0000 (04:22 +0000)]
Roussed on Jeremy for not putting in enough debugs in the new print
notify stuff.  (-:
(This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)

21 years agoinitial mem_ctx to NULL
Andrew Tridgell [Thu, 5 Sep 2002 03:06:26 +0000 (03:06 +0000)]
initial mem_ctx to NULL
patch from metze
(This used to be commit a4351a3923fd87e1c54119d997b673fcac34601b)

21 years agoThe new popt_common_debug code obviates the need to muck around with
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.
(This used to be commit 561204905b78323fd0a03cc7ec5c9dbb2295bd5b)

21 years agoAdded better error code on out of space. Removed total jobs check - not
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.
(This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)

21 years agoOnly cache the user list on the SAMR handle for a particular
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
(This used to be commit 65047aee7fefefaecded9772184a54c046ab1784)

21 years agoMerge of (apparently working :-) new printing notify code.
Jeremy Allison [Wed, 4 Sep 2002 21:59:38 +0000 (21:59 +0000)]
Merge ... (apparently working :-) new printing notify code.
Jeremy.
(This used to be commit 8595c6ce4d74539089b600b3b0ff858a04b793ff)

21 years agoAdd bcast_msg_flags to connection struct. Allows sender to filter when
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.
(This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)

21 years agodon't use ENCTYPE_ARCFOUR_HMAC unless the kerberos lib supports it
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
(This used to be commit 13dc9e37d2422c45ac5005dce26b349f88dbe505)

21 years agoSet default ACB attributes on 'unixsam' accounts. This means that machine
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
(This used to be commit 474cc910c73e5567313bac438c7324a80e2e90d8)

21 years agoFix typo in comment.
Tim Potter [Wed, 4 Sep 2002 04:30:41 +0000 (04:30 +0000)]
Fix typo in comment.
(This used to be commit 47b8ec632e20aa86c34f6a0a82d886fcc76f3000)

21 years agoQuietened some debugs.
Tim Potter [Wed, 4 Sep 2002 02:57:16 +0000 (02:57 +0000)]
Quietened some debugs.
(This used to be commit ea26b3e8efcb83e16f7eb5add031a8df99046a69)

21 years agoremove inet_aton()
Gerald Carter [Wed, 4 Sep 2002 01:15:01 +0000 (01:15 +0000)]
remove inet_aton()
(This used to be commit a7616b2b942eaf3be4e16fb9d38cdb42d8b95a94)

21 years agoDeletePrinterDriver[Ex]() fixes from APP_HEAD
Gerald Carter [Wed, 4 Sep 2002 01:14:24 +0000 (01:14 +0000)]
DeletePrinterDriver[Ex]() fixes from APP_HEAD
(This used to be commit 04874134ed83847988bad5fcad3463395dc283fb)

21 years agoFix the struct_blob.
Richard Sharpe [Tue, 3 Sep 2002 21:35:26 +0000 (21:35 +0000)]
Fix the struct_blob.
(This used to be commit ce152b33c8b08905ea863d47a620c90ca47c8566)

21 years agoEnsure we open UNIX fifo's non-blocking like we used to do.
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.
(This used to be commit 53f411df10f1e152d8d596cd24a2f66af9eb6e51)

21 years agoFix crashbug discovered by "Kim R. Pedersen" <krp@filanet.dk> where
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.
(This used to be commit e33e9defa657aa54594bb0c27f9be2f7b12aab1b)

21 years agoFormatting tidyup and additon of cli_close_connection() before bugfix.
Jeremy Allison [Tue, 3 Sep 2002 19:18:12 +0000 (19:18 +0000)]
Formatting tidyup and additon of cli_close_connection() before bugfix.
Jeremy.
(This used to be commit 3b71529c694b5b1093d99b7ef80835e72b1f8436)

21 years agoFix the client side NTLMSSP. It now works between smbclient and smbd!
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!
(This used to be commit 53e4975337be2cab3ee89f2f62e5659855365b73)

21 years agoParse the NTLMSSP Challenge in cliconnect.c.
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.
(This used to be commit 5784835db95baf62362d35d3beab5d534cc776e9)

21 years agoConver cli_spoolss routines to use REGISTRY_VALUE and REGVAL_CTR code. Nice one...
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?)
(This used to be commit f0c6303bebe0f494d70ac5371d7f6727413fe482)

21 years agoConvert to new REGISTRY_VALUE cli_spoolss routines.
Tim Potter [Tue, 3 Sep 2002 05:00:17 +0000 (05:00 +0000)]
Convert to new REGISTRY_VALUE cli_spoolss routines.
(This used to be commit 100aa8c893464d65f1b2225dab9dc5b58bbcff91)

21 years agoFixed enumjobs command to use new JOB_INFO_CTR structure.
Tim Potter [Tue, 3 Sep 2002 04:58:36 +0000 (04:58 +0000)]
Fixed enumjobs command to use new JOB_INFO_CTR structure.
(This used to be commit 9db5be03617740e705bce51784fdb80784779acb)

21 years agoFix setprinterdata rpcclient command to use new cli_spoolss_setprinterdata
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...
(This used to be commit 82c9bf2a6f03c801e701636aff726090483cea25)

21 years agoMake sure that an NTLMSSP negotiate blob has the correct stuff in it!
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!
(This used to be commit b28267f52c0a5c175b067d7c2d10eca83c20e640)

21 years agoAdd type A to the small MSRPC generator ...
Richard Sharpe [Tue, 3 Sep 2002 03:53:50 +0000 (03:53 +0000)]
Add type A to the small MSRPC generator ...
(This used to be commit 7f8fd5f270af74dcb3fd18af74233f7db4d8f9a7)

21 years agoThe session key in NTLMSSP AUTH blobs is actually an empty string.
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.
(This used to be commit aaa7a681ce4ee52edb23c73a53aeabb07fd5b7d8)

21 years agoImplemented client function for deleteprinterdataex.
Tim Potter [Tue, 3 Sep 2002 03:21:53 +0000 (03:21 +0000)]
Implemented client function for deleteprinterdataex.
(This used to be commit 6d792c683df3a4f97e1a04a57bf4890aab35aecd)

21 years agoChange JOB_INFO_CTR to return a pointer to an array rather than array of pointers.
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.
(This used to be commit e9b71b354d923b2cd0f028dd197e7ca81339ec3a)

21 years agoChange 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.
(This used to be commit f7641c8fd1079c2ef444d4bca5b97b1285733d10)

21 years agoDisplay printerdata values in hex.
Tim Potter [Tue, 3 Sep 2002 01:56:05 +0000 (01:56 +0000)]
Display printerdata values in hex.
(This used to be commit cdd64e0860bf05b115e0d107f6cb2b9e1f6d0e9b)

21 years agoAdded utility function to convert python strings to hex dump + ascii.
Tim Potter [Tue, 3 Sep 2002 01:55:21 +0000 (01:55 +0000)]
Added utility function to convert python strings to hex dump + ascii.
(This used to be commit 7a6b6a8b4871065e3178223a7da5fafd8792b0bc)

21 years agoA printerdata browser I whipped up in about 5 minutes. (-:
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
(This used to be commit a3e52367c961070ce80ac3d4bba763ad9ec1007c)

21 years agoRewrote to use gtkdictbrowser.
Tim Potter [Tue, 3 Sep 2002 01:32:05 +0000 (01:32 +0000)]
Rewrote to use gtkdictbrowser.
(This used to be commit 6f78c4181449a995b9d5b2955981a20e4fdcc829)

21 years agoIgnore *.pyc files.
Tim Potter [Tue, 3 Sep 2002 01:30:26 +0000 (01:30 +0000)]
Ignore *.pyc files.
(This used to be commit 519d1589a9358d8c2de01bd23159e3d552554131)

21 years agoImplement deleteprinterdataex
Tim Potter [Tue, 3 Sep 2002 01:10:21 +0000 (01:10 +0000)]
Implement deleteprinterdataex
(This used to be commit a89fe79e222b36eda123ccdbca96badb7714776e)

21 years agoReturn dictionary of printerdata in enumprinterdataex.
Tim Potter [Tue, 3 Sep 2002 00:40:06 +0000 (00:40 +0000)]
Return dictionary of printerdata in enumprinterdataex.
(This used to be commit 348b6778d8b9e42f27da51652c7198cc42048059)

21 years agoReturn data from enumprinterdataex by deep copying on passed in tdb context.
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.
(This used to be commit 1f629aa54ea3733c356c21f9f707b7f6075f6429)

21 years agousrmgr expects unicode as ProductType.
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
(This used to be commit f673eac06ab4af97a4d28427f7444696402ae680)

21 years agoFix typo - Thanks Kai
Jelmer Vernooij [Mon, 2 Sep 2002 10:58:03 +0000 (10:58 +0000)]
Fix typo - Thanks Kai
(This used to be commit 8fb4534212e49d2f64f45cbeb481b9f4a69f3158)

21 years agosmall typo, kai is german :-)
Volker Lendecke [Mon, 2 Sep 2002 09:02:40 +0000 (09:02 +0000)]
small typo, kai is german :-)
(This used to be commit f435bf0095694a283db47e33c9eb1b5b6df13d03)

21 years agoAdd a 'key' field to printer data dictionary.
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).
(This used to be commit fb0f4f7bfe81923adfe71549973da2be57f0e71f)

21 years agomake proto
Tim Potter [Mon, 2 Sep 2002 07:44:48 +0000 (07:44 +0000)]
make proto
(This used to be commit 88a97d2174eee884de52e848d30bc2c459bf28bb)

21 years agoAdded methods for getprinterdataex, setprinterdataex and enumprinterdataex.
Tim Potter [Mon, 2 Sep 2002 07:44:00 +0000 (07:44 +0000)]
Added methods for getprinterdataex, setprinterdataex and enumprinterdataex.
(This used to be commit ac84b220aa2910abec309f2dc048adb84f609786)

21 years agoFix transposed args in open_pipe_creds() function.
Tim Potter [Mon, 2 Sep 2002 07:42:39 +0000 (07:42 +0000)]
Fix transposed args in open_pipe_creds() function.
(This used to be commit 63e59b0b737a1cd4ccc588b27e86be8262296052)

21 years agoImplemented some more client side spoolss functions:
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.
(This used to be commit 6a1953f2431cc848abf210bdecd7080738991296)

21 years agoImplemented some more client side spoolss functions:
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
(This used to be commit 62a60782533851b3380aa0db300fa16dfe6ca72e)

21 years agowrong way to handle things, bug found by kai
Simo Sorce [Sun, 1 Sep 2002 10:24:34 +0000 (10:24 +0000)]
wrong way to handle things, bug found by kai
(This used to be commit 58f912da47d18a6a548c50dc9d4298c6bec7ea0d)

21 years agoFix segfault in net command
Volker Lendecke [Sun, 1 Sep 2002 07:52:54 +0000 (07:52 +0000)]
Fix segfault in net command
(This used to be commit 26bee60a419593a5afe4e48614f7f3fc414596a5)

21 years agoConvert M_DEBUG(0 to M_DEBUG(10 for non-error cases ...
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 ...
(This used to be commit d5c10e7dc76216db793319f9beb99dd12441e76b)

21 years agoAdd a dash of static.
Andrew Bartlett [Sat, 31 Aug 2002 08:51:38 +0000 (08:51 +0000)]
Add a dash of static.
(This used to be commit e3af3adac1a01842bc5242e68393196497a1d71c)

21 years agoAdd a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements to
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
(This used to be commit 9deada345c5f89f338530c4de62835cc1eeb3d0e)

21 years agoAvoid writing unitialised bytes to the wire (and consequent valgrind warnings)
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
(This used to be commit 52db44b5c01e16923393b0ec9a8d0f530be7bb2d)

21 years agoAdd a fix for 'query_disp_info level 2', which should return all machines in
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
(This used to be commit 004090edffef6cc04c286b9924b8c47ea3260ef2)

21 years agoFix bug with stat mode open being done on read-only open with
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.
(This used to be commit 18b9cbd857177a911ef95c9322bdf0709161cd84)

21 years agoCorrect error message.
Jeremy Allison [Fri, 30 Aug 2002 19:06:07 +0000 (19:06 +0000)]
Correct error message.
Jeremy.
(This used to be commit e9392c4a2e1e1ce44fcd1a1105477c17a3410f14)

21 years agoCorrectly fail opens with mismatching SYSTEM or HIDDEN attributes if we
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.
(This used to be commit bd1e3df9ffa0717f26696a222e5ec6a0198b3352)

21 years agooff by one in writing to malloced array. this fixes smbd crash I saw at
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
(This used to be commit cf9bb66aa9c3217cb8394058c65c84ffc6ae269a)

21 years agoBetter error reporting on OPEN test.
Jeremy Allison [Fri, 30 Aug 2002 18:56:00 +0000 (18:56 +0000)]
Better error reporting on OPEN test.
Jeremy.
(This used to be commit 4e836c4ce2b51e42ab4f29c6c916fe6a73a58654)

21 years agoPut PRINTER_DRIVER back in
Jelmer Vernooij [Fri, 30 Aug 2002 18:01:26 +0000 (18:01 +0000)]
Put PRINTER_DRIVER back in
(This used to be commit 0a92c4db1fed6eff577a67e9c4fd54bd4fe4afac)

21 years agoAdded attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy Allison [Fri, 30 Aug 2002 17:22:33 +0000 (17:22 +0000)]
Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy.
(This used to be commit 4eeef6ef530acf1cc4e08e24af902c15af57ece7)

21 years agofix up print portion of registry. Merge from APP_HEAD.
Gerald Carter [Fri, 30 Aug 2002 14:48:33 +0000 (14:48 +0000)]
fix up print portion of registry.  Merge from APP_HEAD.
(This used to be commit ec37633548ed329c05b93499f75883d987b78f1e)

21 years agobased on function prototype, the args were switched - this gave an error
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.
(This used to be commit 29a8f2121114cafca07797cadaeb26c9d0055b24)

21 years agofix proto
Gerald Carter [Fri, 30 Aug 2002 12:46:54 +0000 (12:46 +0000)]
fix proto
(This used to be commit 4f00844da05b37cf9755def40a63c11e7f82153e)

21 years agoallow rpcclient's samlogon command to use cli_net_3().
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.
(This used to be commit 3cf419bdfbd3c56f31fb0794b206ab4bd2ac7120)

21 years agofix broken dependencies....
Gerald Carter [Fri, 30 Aug 2002 11:38:39 +0000 (11:38 +0000)]
fix broken dependencies....
(This used to be commit 8eab2e79412c771ef57d39e7d61816b705350e0f)

21 years agobreak out REGISTRY_VALUE & REGVAL_CR objects into separate file for
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....
(This used to be commit fd140aadd7c76facb4efa80655e633600f9760b6)

21 years agomerge of phant0m key fix from APP_HEAD
Gerald Carter [Fri, 30 Aug 2002 10:47:34 +0000 (10:47 +0000)]
merge of phant0m key fix from APP_HEAD
(This used to be commit cb13d334a53f27713665570d85607d57eb407f9f)

21 years agoadded cli_net_auth_3 client code.
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.
(This used to be commit 4d38caca40f98d0584fefb9d66424a3db5b5789e)

21 years agoRemoved some misleading comment.
Volker Lendecke [Fri, 30 Aug 2002 08:24:26 +0000 (08:24 +0000)]
Removed some misleading comment.

Volker
(This used to be commit 70cf2f1e2f0187c546a0193824ab85a416c5236c)

21 years agoconvert the LDAP/SASL code to use GSS-SPNEGO if possible
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
(This used to be commit b04e91f660d3b26d23044075d4a7e707eb41462d)

21 years agoensure that we unlock in case we hit a tdb error
Andrew Tridgell [Fri, 30 Aug 2002 06:56:12 +0000 (06:56 +0000)]
ensure that we unlock in case we hit a tdb error
(This used to be commit 4aa7dfb7e7f4ad33b8768d20ec2eb9cb3fde6385)

21 years agoremoved a debug line
Andrew Tridgell [Fri, 30 Aug 2002 06:55:27 +0000 (06:55 +0000)]
removed a debug line
(This used to be commit 5185f495d055cee609872db9e59edbe3220dc5bd)

21 years agoRemove obsolete documents
Jelmer Vernooij [Fri, 30 Aug 2002 06:44:07 +0000 (06:44 +0000)]
Remove obsolete documents
(This used to be commit f736b83da65339a225876e50c836b209b2857074)

21 years agoparanoid server security defaults to yes
Andrew Bartlett [Fri, 30 Aug 2002 06:27:17 +0000 (06:27 +0000)]
paranoid server security defaults to yes
(This used to be commit 46c49248e3f2ab307218b476b9a659bf54c3031e)

21 years agoForgot to check in some of the libsmb stuff.
Tim Potter [Fri, 30 Aug 2002 02:43:51 +0000 (02:43 +0000)]
Forgot to check in some of the libsmb stuff.
(This used to be commit 0a2f6049c0b49810abf1c3e909d712f53c7fc8c1)

21 years agoAbstract out the functionality of gtdbtool into a dictionary browser
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
(This used to be commit 8af86f68354f7c803bb66886560b358d6e48681d)

21 years agofix connecting to a BDC when the PDC is down but in WINS and no bcast
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 ....
(This used to be commit f757223ebe88148b83e1a32b87c014c15c0a68dd)

21 years agofix connecting to a BDC when the PDC is down but in WINS and no bcast
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
(This used to be commit e95d8e2c9ee5cf22b628f3e0d99fb74bcc632ea0)

21 years agoSeveral small fixes
Jelmer Vernooij [Thu, 29 Aug 2002 20:43:08 +0000 (20:43 +0000)]
Several small fixes
(This used to be commit 4fc06a9e2274546807beb411e9bcf47931f8b4f6)