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

433 Commits

Author SHA1 Message Date
Gerald Carter
1d49e9bc71 merges from SAMBA_2_2
(This used to be commit 91929afbb0)
2002-04-16 16:49:08 +00:00
Tim Potter
d0386372b2 The cli_lsa_lookup_{names,sids} functions were returning useless
information when one or more of the names/sids being queried were not
resolvable.  We now return a list the same length as the parameters passed
instead of an array of just the resolvable names/sids.
(This used to be commit 245468dbab)
2002-04-14 11:21:25 +00:00
Tim Potter
f8b1f9608f Fixed comment.
(This used to be commit 06df6c79ae)
2002-04-14 04:57:02 +00:00
Tim Potter
29e67cad05 Free popt context after argument parsing.
(This used to be commit f287f62962)
2002-04-04 04:29:09 +00:00
Gerald Carter
d843380398 removing unused files....
(This used to be commit 3d542abdb1)
2002-04-03 03:06:22 +00:00
Gerald Carter
f624d6f3ae added "list <pipe>" command to display the available commands
one a single pipe
(This used to be commit b73a8416d3)
2002-04-02 23:28:40 +00:00
Gerald Carter
9cb6a94406 some mergee from SAMBA_2_2. Does compile, but needs some more testing.
This is an intermediate check-in.  More to come....
(This used to be commit 5b9b152971)
2002-04-02 01:10:41 +00:00
Tim Potter
ab13654dc9 Renamed get_nt_error_msg() to nt_errstr().
(This used to be commit 1f007d3ed4)
2002-03-17 04:36:35 +00:00
Jim McDonough
bc6959c6f6 Swap order of close brace and done: tag to appease AIX compiler. Order shouldn't matter for logic...if anyone disagrees whack me over the head and explain why...
(This used to be commit 4081ce40dd)
2002-03-08 03:36:03 +00:00
Jim McDonough
f3df73c0cf One more fix to get popt to work for some compilers...this is the downside to popt. Every option has to be in fixed storage.
(This used to be commit e5e7132e80)
2002-03-08 03:31:01 +00:00
Jim McDonough
6e6318525a Convert rpcclient to use popt instead of getopt. Includes changing of got_pass from BOOL to int. Also includes long option names...anyone want those different before I update the doc? Please try this out. I've tried to test all the flags, but the more times we kick the tires...
(This used to be commit cd34897749)
2002-03-07 18:56:51 +00:00
Tim Potter
fd7cdf6da4 Cosmetic fixup for enum_printers
(This used to be commit bb0ef8bc30)
2002-03-07 04:29:13 +00:00
Tim Potter
6fbd44c77a Fixed a bunch of crash bugs for enumprinters at various info levels.
(This used to be commit d9df00e2b1)
2002-03-07 04:22:16 +00:00
Tim Potter
b89b7d4d12 argc == 0 is an impossible condition.
(This used to be commit 5b195f8bf1)
2002-03-07 04:03:21 +00:00
Andrew Bartlett
81b2d66c97 Allow Samba to trust NT4 Domains.
This commit builds on the auth subsystem to give Samba support for trusting NT4
domains.  It is off by default, but is enabled by adding 'trustdomain' to the
'auth methods' smb.conf paramater.

Tested against NT4 only - there are still some issues with the join code for
Win2k servers (spnego stuff).

The main work TODO involves enumerating the trusted domains (including the RPC
calls to match), and getting winbind to run on the PDC correctly.

Similarly, work remains on getting NT4 to trust Samba domains.

Andrew Bartlett
(This used to be commit ac8c24a9a8)
2002-03-02 08:25:44 +00:00
Herb Lewis
361d0f9f7b merge from 2.2 - fix parsing of options
(This used to be commit c849e93392)
2002-02-26 20:04:54 +00:00
Tim Potter
bb117fdca7 Implemented client side functions for SPOOLSS addform, getform, setform and
enumforms.
(This used to be commit e69222f081)
2002-02-25 06:43:31 +00:00
Tim Potter
e026103a97 Converted remaining spoolss rpcclient functions to werror/needed/offered.
I couldn't test some of these because I didn't know the right magic
arguments to pass to rpcclient (familiar anyone? (-:) so there may be some
bugs lurking.
(This used to be commit 029e2b307d)
2002-02-20 18:41:07 +00:00
Tim Potter
902cc03807 Converted {cmd,cli}_spoolss_getprinter() to WERROR and offered/neede.
(This used to be commit fccfa034e9)
2002-02-19 02:12:01 +00:00
Tim Potter
9a0a35d09a Converted cmd_spoolss_enumprinterdrivers() to use new
cli_spoolss_enumprinterdrivers() function.
(This used to be commit ae38fcf62c)
2002-02-19 01:06:55 +00:00
Tim Potter
1b70d2769a Added addform, setform and deleteform commands. The only one I could get
to actually work was addform.  )-:

Removed a whole bunch of calls to werror_to_ntstatus() because there isn't
a one-to-one mapping of NTSTATUS values to WERROR values.  This function
maps WERR_ACCESS_DENIED to NTSTATUS_INVALID_LOCK_SEQUENCE or something
silly like that.
(This used to be commit 825b5c8bd6)
2002-01-31 11:36:30 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06)
2002-01-30 06:08:46 +00:00
Andrew Bartlett
ba8c1c6e45 Back out some of the less well thought out ideas from last weeks work on
winbind default domains, particulary now I understand whats going on a lot
better.  This ensures that the RPC client code does as little 'magic' as
possible - this is up to the application/user.  (Where - for to name->sid code
- it was all along).  This leaves the change that allows the sid->name code to
return domains and usernames in seperate paramaters.

Andrew Bartlett
(This used to be commit 5dfba2cf53)
2002-01-26 11:48:42 +00:00
Andrew Bartlett
84ce7ec0a4 Make a talloc'ed copy of this strings so we can pass the right kind of pointer
to the function.  This fixes a nice little segfault the brute-force-casting
created. :-)

Andrew Bartlett
(This used to be commit c84fa7f5fd)
2002-01-26 10:06:23 +00:00
Andrew Bartlett
93a8358910 This patch makes the 'winbind use default domain' code interact better with
smbd, and also makes it much cleaner inside winbindd.

It is mostly my code, with a few changes and testing performed by Alexander
Bokovoy <a.bokovoy@sam-solutions.net>.  ab has tested it in security=domain and
security=ads, but more testing is always appricatiated.

The idea is that we no longer cart around a 'domain\user' string, we keep them
seperate until the last moment - when we push that string into a pwent on onto
the socket.

This removes the need to be constantly parsing that string - the domain prefix
is almost always already provided, (only a couple of functions actually changed
arguments in all this).

Some consequential changes to the RPC client code, to stop it concatonating the
two strings (it now passes them both back as params).

I havn't changed the cache code, however the usernames will no longer have a
double domain prefix in the key string.  The actual structures are unchanged
 - but the meaning of 'username' in the 'rid' will have changed.  (The cache is
invalidated at startup, so on-disk formats are not an issue here).

Andrew Bartlett
(This used to be commit e870f0e727)
2002-01-20 01:24:59 +00:00
Simo Sorce
7019bfe546 fixes (asprintf) from 2.2
(This used to be commit 6b123adda9)
2002-01-19 17:29:32 +00:00
Tim Potter
9a02c6b4e8 Converted getprinterdriver to WERROR - it always returns dos error 6
(invalid handle) though.  )-:
(This used to be commit 7bfd1f35e4)
2002-01-07 03:33:46 +00:00
Tim Potter
2f25e5118f Converted enumprinters and enumports cmd functions to use WERROR
values returned from cli functions.  They are converted to NTSTATUS codes
using the error map functions.

Do buffer size loop checks by setting offered = 0 and using the return
value of needed in the next call.
(This used to be commit 4efbdda3fc)
2002-01-06 09:03:48 +00:00
Tim Potter
cd0772e51e spoolss rpc client cleanup:
- converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS
 - doc
(This used to be commit 248d114f85)
2002-01-06 03:54:40 +00:00
Tim Potter
84dbcd6147 Display nicer message when server name could not be resolved.
(This used to be commit 950d8e3656)
2002-01-06 03:24:51 +00:00
Tim Potter
9c1ddeca6f Fixed crash bug in display_print_info_2()
(This used to be commit b70f870cd9)
2002-01-03 03:51:13 +00:00
Tim Potter
af8ed15401 Fixed crash bug in display_print_info_1()
(This used to be commit d1564fbf1f)
2002-01-03 02:48:23 +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
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
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
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
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
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
Andrew Tridgell
89dd1a00b6 lp_setup_logfile() doesn't exist any more
(This used to be commit aa52ae7354)
2001-12-20 23:46:05 +00:00
Jeremy Allison
9ed10f83d7 Removed global debugf. Replaced with lp_set_logfile(name).
Fixed winbindd to finally stop leaving log. file droppings :-).
Jeremy.
(This used to be commit 0bea6cf79a)
2001-12-20 22:27:05 +00:00
Jean-François Micouleau
9fc3e980e9 initialise strings
(This used to be commit cb61606b8e)
2001-12-18 00:27:46 +00:00
Jean-François Micouleau
9f59fc64b8 update the ldap support code. it compiles.
Ignacio you can update your howto ;-)

samsync: a small patch to try chaning challenges.

	J.F.
(This used to be commit c99bc30559)
2001-12-13 18:09:29 +00:00
Tim Potter
23b239625c Fix some compiler warnings.
(This used to be commit 216dff4380)
2001-12-13 00:02:37 +00:00
Jean-François Micouleau
a5ba214479 added a -V[erbose] option to samsync. Decode a lot of information
I'm looking at chaining the credentials

	J.F.
(This used to be commit d49c8e4d3d)
2001-12-12 15:25:22 +00:00
Tim Potter
6a60668fe2 SAMR query sec obj returns different results depending on which sam handle
it is passed.  Not sure what these different contexts are called or what
they are used for.

 - if a rid is specified to samquerysecobj then use the sam user policy
    handle for that rid
 - if -d is specified then use the sam domain policy handle
 - otherwise just use the sam connect policy handle

JF, any ideas about this?
(This used to be commit 4ef50ef9f7)
2001-12-11 03:03:45 +00:00
Tim Potter
44d423419a Grr - people who put const everywhere should fix up all the warnings they
generate.
(This used to be commit d1ebd259c8)
2001-12-11 02:23:14 +00:00
Tim Potter
31611dd2f4 Removed unused variable.
(This used to be commit 1dc0e9096d)
2001-12-11 02:22:42 +00:00
Tim Potter
b872787f01 Doing some research into ACLs on the LSA and SAM policy objects.
- added lsaquerysecobj to rpcclient
 - renamed querysecobj to samquerysecobj
 - removed duplicated display_sec_acl() code from cmd_spoolss.c and
   cmd_samr.c and moved it into display_sec.c
(This used to be commit 59b2e3f408)
2001-12-11 02:17:26 +00:00
Tim Potter
d032059df9 Compile fix.
(This used to be commit 83caa883d7)
2001-12-11 00:11:11 +00:00