1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

59933 Commits

Author SHA1 Message Date
Matthieu Patou
e0726d4d66 s4-build: fix SMB_LIBRARY and change its name so it didn't collide with s3 one
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:40 +01:00
Matthieu Patou
92785f9af6 s3: Fix build file due to file move. Use the new path of iniparser
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:39 +01:00
Matthieu Patou
b953c4c67c s3: Move source3/iniparser to lib/iniparser to allow sharing between s3/s4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:39 +01:00
Matthieu Patou
1af5a6d359 s3: Allow pam_winbind.c to build without localedir.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:38 +01:00
Matthieu Patou
db6781833d nsswitch: libpam remove depedance on locale.h use directly LOCALEDIR
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:38 +01:00
Andreas Schneider
3f946240fa s4-winrepl: Migrated the wins replication server to tsocket.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:37 +01:00
Michael Adam
27ae935a8d s3:net: add a command "net registry setsd_sdd"
This permits to set the security descriptor of a registry
key from the unix command line.

Michael
2010-03-03 09:16:38 +01:00
Michael Adam
6f4bdbccf7 s3:net: fix some i18n messages in net_registry_getsd_internal().
Michael
2010-03-03 09:16:38 +01:00
Michael Adam
d8b828d4a9 s3:net: add i18n macro _() to one message
Michael
2010-03-03 09:16:38 +01:00
Michael Adam
caa27bb165 s3:net: add new subcommand "net registry getsd_sddl" to print secdesc in sddl format
Michael
2010-03-03 09:16:37 +01:00
Michael Adam
93d438d970 s3:net: refactor getting of secdesc out of net_registry_getsd()
New net_registry_getsd_internal does the work(),
net_registry_getsd() just prints the result.
This in preparation to add support for other output formats
than the currently used display_sec_desc().

Michael
2010-03-03 09:16:36 +01:00
Michael Adam
9cea4d5969 s3:smbcacls: add switch "--sddl" to output acls as sddl encoded strings 2010-03-03 09:16:35 +01:00
Michael Adam
6fa767fbb2 s3: build sddl.c in samba3 2010-03-03 09:16:35 +01:00
Michael Adam
f37030b33a libcli/security: fix sddl.c to be able to build it from source3 2010-03-03 09:16:34 +01:00
Michael Adam
15b60a7e3f s4:move the sddl code down to the top level
Michael
2010-03-03 09:16:34 +01:00
Kamen Mazdrashki
5338e42182 s4/ildap: fine tune ildb_callback()
Actually ildb_context pointer is not supposed to be
valid after calling ildb_request_done().
This is due to the fact that when calling ildb_request_done()
caller will (most probably) free any locally built
ldap_request objects - thus rendering ildb_context invalid.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-03 13:18:38 +11:00
Holger Hetterich
e3c2e1a303 s3: net_share.c: fix argc handling
The "net share" command was no longer possible because it enters
the net_share function with argc == 0.
2010-03-02 15:27:58 -08:00
Günther Deschner
f36dafd852 s4-smbtorture: fix WINBIND-STRUCT assumptions about getpwent() for s3.
In samba3 it is not an error when no users are returned in getpwent() calls
(e.g. on a DC w/o interdomain trusts).

Kai, please check.

Guenther
2010-03-02 19:03:17 +01:00
Simo Sorce
8492f92843 s3:ads fix dn parsing name was always null
While there also use ldap_exploded_dn instead of ldb_dn_validate()
so we can remove a huge dependency that is hanging there only for one very
minor marginal use.

Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-02 19:03:17 +01:00
Günther Deschner
74703e4897 testprogs: make sure to do the same tests as in smbtorture in test_PrinterData().
Guenther
2010-03-02 19:03:17 +01:00
Günther Deschner
f73c27116c testprogs: fix REG_SZ in print_printer_data.
Guenther
2010-03-02 19:03:16 +01:00
Matthias Dieter Wallnöfer
e50c982679 LDB:NSS - make LDB "signed-safe" on counter variables
"i" needs to be unsigned on both places since it counts till a "count" variable
of a "struct ldb_result" object which itself is unsigned.

I see counting variables much better as "unsigned" since in most cases we don't
use negative values at all. We've only to be careful on binary searches and
downto counts regarding them.
2010-03-02 18:02:00 +01:00
Matthias Dieter Wallnöfer
5c73ecd2b3 s4:echo RPC - make this one "signed-safe"
"i" needs to be unsigned here since it counts until "r->in.len" which itself is
unsigned and not signed.
2010-03-02 17:46:02 +01:00
Günther Deschner
8919a58583 testprogs: test result of GetPrinterDataEx against SetPrinterDataEx args.
Guenther
2010-03-02 15:29:38 +01:00
Volker Lendecke
0e9844c70a s3: Fix some C++ warnings 2010-03-02 14:29:43 +01:00
Volker Lendecke
2330b625cc s3: Fix an uninitialized variable warning 2010-03-02 14:29:43 +01:00
Björn Jacke
d18840830e s3:vfs_aixacl2: add missing semicolon
fixes #7197. Thanks to William Jojo for the correction.
2010-03-02 13:00:19 +01:00
Endi S. Dewata
c54699faf2 s4:provision - Moved default FDS SASL mappings deletion from post_setup() to init().
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:15 +11:00
Endi S. Dewata
7ad931dda9 s4:provision - Moved setup_db_config() into OpenLDAPBackend class.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:10 +11:00
Endi S. Dewata
fc6d9e7b4f s4:provision - Moved backend-specific variables into backend class.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:05 +11:00
Endi S. Dewata
02533c9f1b s4:provision - Use netbios name for FDS instance name.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:01 +11:00
Endi S. Dewata
07669b0704 s4-libcli: Added NULL handlers for DSDB_CONTROL_DN_STORAGE_FORMAT_OID and LDB_CONTROL_AS_SYSTEM_OID
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:06:52 +11:00
Simo Sorce
be026a6fd8 s3:groupmap revert to tdb storage
Group mapping needs to be cluster aware, and this means using the tdb backend.
Remove ldb group mapping as this is not cluster aware.
2010-03-01 16:09:58 -05:00
Matthias Dieter Wallnöfer
05bd8c17be s4:srvsvc RPC - revert one unsigned integer "i" back to signed
This is needed since this particular "i" counts until "count" which itself is
signed. "count" is set through a signed integer variable parameter from the
"share_list_all" call.
2010-03-01 21:18:43 +01:00
Günther Deschner
cf12d4556a testprogs: better usage text.
Guenther
2010-03-01 21:15:34 +01:00
Günther Deschner
36d3aa69f1 testprogs: add very basic PrinterData test for printers.
This very basically tests SetPrinterDataEx, GetPrinterDataEx and
DeletePrinterDataEx.

Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
0d0d778b21 testprogs: rename test_PrinterData to test_PrinterData_Server.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
d44dd1005b testprogs: add SetPrinterDataEx test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
b797481b8d testprogs: add DeletePrinterKey test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
1b6f1e8c30 testprogs: add DeletePrinterDataEx test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
61568cf4c8 testprogs: allow to test a single printer when given on the cmdline. 2010-03-01 21:15:33 +01:00
Günther Deschner
32371e9ba6 testprogs: add RPC_X_NULL_REF_POINTER error code 2010-03-01 21:15:33 +01:00
Stefan Metzmacher
522e4f3d2b s4:RPC-ECHO: don't ignore errors in the Sleep test now that we support async rpc over ncacn_np
metze
2010-03-01 18:45:21 +01:00
Stefan Metzmacher
340bcf646b s4:rpc_server/remote: do async calls
metze
2010-03-01 18:45:20 +01:00
Matthias Dieter Wallnöfer
ff17d8ab1e s4:srvsvc RPC - make this one "signed-safe" 2010-03-01 18:45:20 +01:00
Matthias Dieter Wallnöfer
b963741aae s4:unixinfo RPC - make this one "signed-safe" 2010-03-01 18:45:20 +01:00
Matthias Dieter Wallnöfer
932a986a4f s4:spoolss RPC - make this one "signed-safe" 2010-03-01 18:45:19 +01:00
Matthias Dieter Wallnöfer
246742b30e s4:remote RPC - make this one "signed-safe" 2010-03-01 18:45:19 +01:00
Matthias Dieter Wallnöfer
c953b26241 s4:epmapper RPC - make this one "signed-safe" 2010-03-01 18:45:16 +01:00
Volker Lendecke
d6a6872506 s3: Abstract access to sessionid.tdb, similar to conn_tdb.c 2010-03-01 17:53:22 +01:00