samba.git
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.

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.

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...

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!

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 ...

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.

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.

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.

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.

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.

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.

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

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

21 years agoIgnore *.pyc files.
Tim Potter [Tue, 3 Sep 2002 01:30:26 +0000 (01:30 +0000)]
Ignore *.pyc files.

21 years agoImplement deleteprinterdataex
Tim Potter [Tue, 3 Sep 2002 01:10:21 +0000 (01:10 +0000)]
Implement deleteprinterdataex

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.

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.

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

21 years agoFix typo - Thanks Kai
Jelmer Vernooij [Mon, 2 Sep 2002 10:58:03 +0000 (10:58 +0000)]
Fix typo - Thanks Kai

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 :-)

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).

21 years agomake proto
Tim Potter [Mon, 2 Sep 2002 07:44:48 +0000 (07:44 +0000)]
make proto

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.

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.

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.

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

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

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

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 ...

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.

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

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

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

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.

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

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.

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

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.

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

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.

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.

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.

21 years agofix proto
Gerald Carter [Fri, 30 Aug 2002 12:46:54 +0000 (12:46 +0000)]
fix proto

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.

21 years agofix broken dependencies....
Gerald Carter [Fri, 30 Aug 2002 11:38:39 +0000 (11:38 +0000)]
fix broken dependencies....

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....

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

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.

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

Volker

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

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

21 years agoremoved a debug line
Andrew Tridgell [Fri, 30 Aug 2002 06:55:27 +0000 (06:55 +0000)]
removed a debug line

21 years agoRemove obsolete documents
Jelmer Vernooij [Fri, 30 Aug 2002 06:44:07 +0000 (06:44 +0000)]
Remove obsolete documents

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

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.

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

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 ....

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

21 years agoSeveral small fixes
Jelmer Vernooij [Thu, 29 Aug 2002 20:43:08 +0000 (20:43 +0000)]
Several small fixes

21 years agoSplit up documents at chapter level, not at sect1 level
Jelmer Vernooij [Thu, 29 Aug 2002 20:14:34 +0000 (20:14 +0000)]
Split up documents at chapter level, not at sect1 level

21 years agoWe don't need the RTLD_GLOBAL.
Andrew Bartlett [Thu, 29 Aug 2002 17:36:44 +0000 (17:36 +0000)]
We don't need the RTLD_GLOBAL.

21 years agoAdding makefile for sam_skel module
Jelmer Vernooij [Thu, 29 Aug 2002 17:08:13 +0000 (17:08 +0000)]
Adding makefile for sam_skel module

21 years agoSAM_CONTEXT is const
Jelmer Vernooij [Thu, 29 Aug 2002 16:39:00 +0000 (16:39 +0000)]
SAM_CONTEXT is const

21 years agoMove samr_make_sam_obj_sd to lib/util_seaccess.c. samtest now compiles and
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!

21 years agoCorrect popt argument info in vfstest
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

21 years agoUse popt for --help
Jelmer Vernooij [Thu, 29 Aug 2002 16:36:37 +0000 (16:36 +0000)]
Use popt for --help

21 years agoMake debuglevel a string for use with debug classes
Jelmer Vernooij [Thu, 29 Aug 2002 16:35:33 +0000 (16:35 +0000)]
Make debuglevel a string for use with debug classes

21 years agoRemove more obsolete documents
Jelmer Vernooij [Thu, 29 Aug 2002 16:18:59 +0000 (16:18 +0000)]
Remove more obsolete documents

21 years agoAdd cifsntdomain
Jelmer Vernooij [Thu, 29 Aug 2002 16:17:26 +0000 (16:17 +0000)]
Add cifsntdomain

21 years agoAdd more documents to the developers guide
Jelmer Vernooij [Thu, 29 Aug 2002 13:28:17 +0000 (13:28 +0000)]
Add more documents to the developers guide

21 years agoForgot to remove old usage() function
Jelmer Vernooij [Thu, 29 Aug 2002 12:44:37 +0000 (12:44 +0000)]
Forgot to remove old usage() function

21 years agoUse popt for printing --help message
Jelmer Vernooij [Thu, 29 Aug 2002 12:05:30 +0000 (12:05 +0000)]
Use popt for printing --help message

21 years agoDon't use global memory context
Jelmer Vernooij [Thu, 29 Aug 2002 11:17:14 +0000 (11:17 +0000)]
Don't use global memory context

21 years agoAdding samtest utility used to test sam backends. Compiles but doesn't do
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/

21 years agoThere's more work to be done on samsync. Intermediate commit, now
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

21 years agoSeveral compiler warning fixes + fix dependencies samtest
Jelmer Vernooij [Thu, 29 Aug 2002 09:42:36 +0000 (09:42 +0000)]
Several compiler warning fixes + fix dependencies samtest

21 years agosmall fixes
Jelmer Vernooij [Thu, 29 Aug 2002 09:20:49 +0000 (09:20 +0000)]
small fixes
make lp_sam_backend() a list

21 years agoI think this should fix the compile on some of the CUPS based machines.
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

21 years agoshow builtin groups in samdump
Andrew Tridgell [Thu, 29 Aug 2002 08:00:15 +0000 (08:00 +0000)]
show builtin groups in samdump

21 years agoRTLD_GLOBAL is not necessary
Jelmer Vernooij [Thu, 29 Aug 2002 07:40:26 +0000 (07:40 +0000)]
RTLD_GLOBAL is not necessary

21 years agoAdd plugin support for the sam system from metze (based on passdb code)
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)

21 years agoExample sam module (skeleton) from metze
Jelmer Vernooij [Thu, 29 Aug 2002 07:26:16 +0000 (07:26 +0000)]
Example sam module (skeleton) from metze

21 years agoAdd new files to Makefile + typo fix
Jelmer Vernooij [Thu, 29 Aug 2002 07:22:52 +0000 (07:22 +0000)]
Add new files to Makefile + typo fix

21 years agoPut in patch from metze (Stefan Metzmacher) to:
Jelmer Vernooij [Thu, 29 Aug 2002 07:19:05 +0000 (07:19 +0000)]
Put in patch from metze (Stefan Metzmacher) to:
- Rename user -> account
- Add sam_* functions (api.c)
- Several small fixes

21 years agoReturn correct FILE_SUPERSEDED response - IFSTEST strikes again...
Jeremy Allison [Wed, 28 Aug 2002 19:47:48 +0000 (19:47 +0000)]
Return correct FILE_SUPERSEDED response - IFSTEST strikes again...
Jeremy.

21 years agofix file_is_special test, was wrong.
Simo Sorce [Wed, 28 Aug 2002 17:01:17 +0000 (17:01 +0000)]
fix file_is_special test, was wrong.

21 years agofix wrong check
Simo Sorce [Wed, 28 Aug 2002 16:01:42 +0000 (16:01 +0000)]
fix wrong check

21 years agoadd proto for forward reference
Herb Lewis [Wed, 28 Aug 2002 14:19:40 +0000 (14:19 +0000)]
add proto for forward reference

21 years agoRemoved C++ style comment.
Jeremy Allison [Wed, 28 Aug 2002 12:55:20 +0000 (12:55 +0000)]
Removed C++ style comment.
Jeremy.

21 years agoMove -4 to correct side of comparison.
Jeremy Allison [Wed, 28 Aug 2002 12:45:19 +0000 (12:45 +0000)]
Move -4 to correct side of comparison.
Jeremy.

21 years agoRemove obsolete questions - Preparing for new up-to-date version of faq
Jelmer Vernooij [Wed, 28 Aug 2002 10:50:29 +0000 (10:50 +0000)]
Remove obsolete questions - Preparing for new up-to-date version of faq

21 years ago'No news is good news' might sometimes be confusing, at least to me :-)
Volker Lendecke [Wed, 28 Aug 2002 10:34:28 +0000 (10:34 +0000)]
'No news is good news' might sometimes be confusing, at least to me :-)

Volker

21 years agoRemove obsolete files
Jelmer Vernooij [Wed, 28 Aug 2002 09:02:38 +0000 (09:02 +0000)]
Remove obsolete files
Update generated docs

21 years agoRemove obsolete text docs
Jelmer Vernooij [Wed, 28 Aug 2002 08:49:02 +0000 (08:49 +0000)]
Remove obsolete text docs

21 years agoRemove yodldocs - it has been obsolete since 2.2
Jelmer Vernooij [Wed, 28 Aug 2002 08:44:37 +0000 (08:44 +0000)]
Remove yodldocs - it has been obsolete since 2.2

21 years agoAdding new series of text-to-sgml converted files.
Jelmer Vernooij [Wed, 28 Aug 2002 08:43:04 +0000 (08:43 +0000)]
Adding new series of text-to-sgml converted files.
Removed OS2-Client-HOWTO and put it into Other-Clients.sgml

21 years agoThere's no MACHINE.SID anymore...
Volker Lendecke [Wed, 28 Aug 2002 08:13:29 +0000 (08:13 +0000)]
There's no MACHINE.SID anymore...

Volker

21 years agoSilly of me to only test this with --with-sam and not without. Doh!
Jelmer Vernooij [Wed, 28 Aug 2002 07:51:07 +0000 (07:51 +0000)]
Silly of me to only test this with --with-sam and not without. Doh!

21 years agoCode style + typo fixes
Jelmer Vernooij [Wed, 28 Aug 2002 05:55:08 +0000 (05:55 +0000)]
Code style + typo fixes
Added Kai Krüger to copyrightholders of interface.c

21 years agoPut in intermediate version of new SAM system. It's not stable yet, code
Jelmer Vernooij [Wed, 28 Aug 2002 04:54:43 +0000 (04:54 +0000)]
Put in intermediate version of new SAM system. It's not stable yet, code
might be ugly, etc - please don't blame me for anything but instead try to fix
the code :-). Compiling of the new sam system can be enabled with the
configure option --with-sam

Removing passdb/passgrp.c as it's unused
fix typo in utils/testparm.c