Jeremy Allison
8cf78ff553
Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.
...
Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions.
This is smaller than it looks, it just fixes a lot of old code.
Next up, ensure all cli_XX functions return NTSTATUS.
Jeremy.
2009-04-30 15:26:43 -07:00
Günther Deschner
09ec85715b
s3-net: make sure to call libnetapi init functions at the top of "net rpc" command.
...
Without the initialization "net rpc password" will prompt twice for passwords
and will not allow to define the name of the connection admin user.
In the long run we should probably only have one place where to initialize
libnetapi.
Kai, please check.
Guenther
2009-04-28 12:16:38 +02:00
Günther Deschner
38264bb3b8
s3-secdesc: move all winreg access bits to IDL.
...
Guenther
2009-04-21 12:42:51 +02:00
Günther Deschner
b5bec1a6d7
s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.
...
Guenther
2009-04-21 12:40:47 +02:00
Andrew Bartlett
6c9caed481
Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
2009-04-20 16:53:02 +02:00
Stefan Metzmacher
c0dfe0cf80
s3:net_rpc: don't shutdown a cli_state passed from the caller
...
This fixes a crash bug if we timeout in net rpc trustdom list.
metze
2009-04-17 21:46:46 +02:00
Jeremy Allison
d9804ae3cc
Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
...
What a difference a name makes... :-). Just because something is missnamed
SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN,
don't automatically use it for a security check in _samr_OpenDomain().
Jeremy.
2009-04-15 15:40:00 -07:00
Andrew Bartlett
f28f113d8e
Rework Samba3 to use new libcli/auth code (partial)
...
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).
We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server
Andrew Bartlett
2009-04-14 16:23:35 +10:00
Günther Deschner
73030b107d
s3-net: Fix Coverity #861 (UNINIT).
...
Guenther
2009-03-20 11:07:21 +01:00
Günther Deschner
d2fb6d3482
s3-net: Fix Coverity #898 (UNINIT).
...
Guenther
2009-03-20 11:04:59 +01:00
Günther Deschner
531af136f9
s3: remove POLICY_HND.
...
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
9fdeb7f7b3
s3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.
...
Guenther
2009-03-18 14:18:42 +01:00
Jeremy Allison
8dd1faaa29
Remove the global "struct cm_cred_struct" and associated calls, make
...
callers pass in a struct user_auth_info * instead. This commit causes
smbc_set_credentials() to print out a message telling callers to use
smbc_set_credentials_with_fallback() instead, as smbc_set_credentials()
has a broken API (no SMBCCTX * pointer). No more global variables used
in the connection manager API for client dfs calls.
Jeremy.
2009-03-17 14:53:06 -07:00
Günther Deschner
7c3ba34788
s3: use samr_RidWithAttribute instead of DOM_GID.
...
Guenther
2009-02-05 00:47:06 +01:00
Günther Deschner
0016c57ca1
s3-net: remove unused ENUM_HND.
...
Guenther
2009-02-05 00:40:59 +01:00
Volker Lendecke
3cd8c121dc
Fix some type-punned warnings
2009-02-01 14:34:22 +01:00
Volker Lendecke
57de60a83f
cli_get_pipe_name_from_interface does not really need a talloc_ctx
2009-02-01 14:34:22 +01:00
Volker Lendecke
0bd92281e4
Make cli_tcon_andx async
2009-01-30 12:47:59 +01:00
Volker Lendecke
3b34486f6a
Actually complete 3662c2b...
2009-01-22 12:13:55 +01:00
todd stecher
989ad44d32
Memory leaks and other fixes found by Coverity
2009-01-21 17:13:03 -08:00
Günther Deschner
46f55ef5bc
s3-samr: avoid all init_samr_user* functions.
...
Guenther
2009-01-06 16:02:10 +01:00
Jeremy Allison
07e0094365
Fix all warnings in source3 with gcc4.3.
...
Jeremy.
2008-12-31 18:06:57 -08:00
Volker Lendecke
bb8ca0fdbf
Make cli_negprot return NTSTATUS instead of bool
2008-12-19 10:28:30 +01:00
Günther Deschner
7423b6a4b8
s3-samr: fix SAMR_FIELD_PASSWORD callers.
...
Guenther
2008-12-05 14:27:03 +01:00
Stefan Metzmacher
2b8f3e253d
s3:net: fix password set of 'net rpc trustdom add'
...
metze
2008-12-04 12:27:57 +01:00
Günther Deschner
4d7485df96
s3-samr: fix init_samr_user_info{23,24} callers.
...
Guenther
2008-11-28 13:55:38 +01:00
Günther Deschner
9f86dd715a
s3-net: add "net rpc vampire passdb" that allows to take arguments.
...
Guenther
2008-11-18 16:03:05 +01:00
Jelmer Vernooij
ddcab787c4
Rename dos_errstr() to win_errstr() for consistency with Samba 4.
2008-11-01 17:19:26 +01:00
Günther Deschner
f126371f17
s3-samr: remove duplicate copies of Domain Object specific access rights.
...
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
700cece822
s3-samr: remove duplicate copies of SAM server specific access rights.
...
Guenther
2008-10-31 21:14:26 +01:00
Jeremy Allison
8344e94574
Unify se_access_check with the S4 code. Will make
...
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier
for files.
Jeremy.
2008-10-31 10:51:45 -07:00
Jelmer Vernooij
f9fb9436ae
Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTS
...
previously present in Samba 3.
2008-10-23 15:37:39 +02:00
Jeremy Allison
4e9db0b100
Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
...
Jeremy.
2008-10-21 18:05:48 -07:00
Günther Deschner
65dc1eeceb
s3: fix various samr callers.
...
Guenther
2008-10-15 17:11:27 +02:00
Jelmer Vernooij
881b36f4cf
Share initshutdown.idl.
2008-10-15 16:13:02 +02:00
Kai Blin
694786b23c
net: Make share type lookup a function.
2008-09-26 20:52:13 +02:00
Günther Deschner
cf1e3e5579
net: use netapi for NetFileEnum.
...
Guenther
(This used to be commit f85dcf8112137b7ad07f2b51eeca598e9c4d0ffa)
2008-09-11 14:38:22 +02:00
Günther Deschner
e10a7af3c6
net: use netapi for NetFileClose.
...
Guenther
(This used to be commit fd3d130d25a7c30fe003abe01fc18d8f754a466f)
2008-09-11 14:38:12 +02:00
Günther Deschner
a780ed8970
net: use netapi for NetShareEnum.
...
Guenther
(This used to be commit f4cb75b1e2b030055b9c566f941277286095b8a7)
2008-09-11 14:21:48 +02:00
Kai Blin
5b54781e1c
net: share_type is defined in net_rap.c, net_rpc.c needs to use that.
...
This fixes a crash in net rpc share that Günther Deschner found.
(This used to be commit 50af6d609dcbbdadb9af44ede980d9c85ac834e3)
2008-09-10 12:05:18 +02:00
Günther Deschner
cb2d7aa827
net: use netapi for rpc_sh_share_delete as well.
...
Guenther
(This used to be commit b56ec0b9952dbad9f552c4be30eaae36faa9131c)
2008-09-05 12:35:11 +02:00
Günther Deschner
f9294970b4
net: use netapi for deleting shares.
...
Guenther
(This used to be commit d7b07b636947cb52aa5474e86c4a3b6aa391a36f)
2008-09-05 12:34:58 +02:00
Günther Deschner
d07f0e345e
net: use netapi for rpc_sh_share_add as well.
...
Guenther
(This used to be commit 0c232742561a4001909ccce2c5160d57d09edb40)
2008-09-05 12:32:56 +02:00
Günther Deschner
04e363c961
net: use netapi to add shares.
...
Guenther
(This used to be commit 95ac480e2030dc607283a8eb89b44015527efa4b)
2008-09-05 12:32:56 +02:00
Günther Deschner
a9a9772b5d
net: use netapi for "net rpc user info" to enumerate user group membership.
...
Guenther
(This used to be commit 77ecfff216b24b0d4b1ce79bee13c18bffa7b533)
2008-08-29 13:57:59 +02:00
Günther Deschner
e2945c38f1
net: use netapi function to set user password.
...
Guenther
(This used to be commit f31fd1e112ec6477ae0e0eeeede0317c0cdfcbfd)
2008-08-29 13:57:58 +02:00
Günther Deschner
badc46d16e
net: use netapi function to list users.
...
Guenther
(This used to be commit 6bc8e229192f0bdd1154c6dd0901e4c739647c90)
2008-08-29 13:57:58 +02:00
Günther Deschner
eefd04212c
net: use netapi for rpc_user_rename.
...
Guenther
(This used to be commit fe28ea1afd4024673f847fc8880910b1f7f0385a)
2008-08-29 13:57:53 +02:00
Günther Deschner
52a8501515
netapi: when using NetApi functions forward net's kerberos setting.
...
Guenther
(This used to be commit d46f648d2e25ad712138f02e5060288278f4c1b1)
2008-07-31 15:26:15 +02:00
Günther Deschner
23e9ebb0d4
net: Use NetLocalGroupAdd() for adding aliases.
...
Guenther
(This used to be commit 2ed4ce0bf1723e35a6c5dfa7f8fa58fb9c7ab469)
2008-07-31 15:15:55 +02:00