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

3351 Commits

Author SHA1 Message Date
Sumit Bose
11c342724f s3-net: Add net trust utility
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06 12:25:42 +02:00
Sumit Bose
afdc9055b5 s3-net: add IPA provision
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06 11:53:56 +02:00
Gregor Beck
a217ec64ec s3-net: add command "net idmap check"
This is a tool to check the consistency of an idmap tdb database.

The default mode is to scan the database and list invalid entries,
e.g. records with an invalid format, or records which are valid
but for which the reverse mapping entry is missing.

With the "--repair" switch, one can enter an interactive
repair mode which will prompt for each invalid entry found
with the option to delete, skip or edit the record.

There is also a non-interactive repair mode triggered by "--auto"
which will remove all records with invalid content and fill up
mappings which are missing the reverse entry.

The "--test" parameter lets "net idmap check" only list the
changes that would be written and not actually commit them to
the database.

The "--lock" option allows to lock the database already in the
first reading traverse, in order to remove the race when the
database has to be closed and reopened again before writing
the changes.

Signed-off-by: Michael Adam <obnox@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Apr  4 18:21:09 CEST 2011 on sn-devel-104
2011-04-04 18:21:09 +02:00
Volker Lendecke
d9b03cb4f0 s3: Fix Coverity ID 1136: CONSTANT_EXPRESSION_RESULT 2011-04-01 08:50:06 +02:00
Sumit Bose
34ea813553 s3-net: Do not use uninitialized value
s3-net: Do not use uninitialized value

Signed-off-by: Andreas Schneider <asn@samba.org>

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Mar 31 18:09:57 CEST 2011 on sn-devel-104
2011-03-31 18:09:57 +02:00
Günther Deschner
c2d6260f10 s3: only include lib/privileges.h where needed.
This finally removes the global lsa.h inclusion.

Guenther
2011-03-30 01:13:10 +02:00
Günther Deschner
643b08dd25 s3: include ../librpc/gen_ndr/lsa.h where needed.
Guenther
2011-03-30 01:13:10 +02:00
Günther Deschner
6e3f0d28a4 s3-includes: only include ntdomain.h where needed.
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
ab36d597e7 s3-messages: make ndr_messaging.h part of messages.h.
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
b2af281e50 s3-messages: only include messages.h where needed.
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
2473c2fb1b s3-libsmb: put namequery headers to nmblib.h
We might find a better name for it and merge other namequery related things as
well here...

Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
2377039738 s3-locking: move locking prototypes out of proto.h.
Will later become part of locking.h

Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
235f148590 s3-passdb: use passdb headers where needed.
Guenther
2011-03-30 01:13:08 +02:00
Günther Deschner
2f36ef7225 s3-passdb: add passdb.h where needed.
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
0a250f4946 registry: create and use shared libcli/registry/util_reg.h header.
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
49ccae1c20 s3-includes: no point in including all security headers globally.
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
0e771263ee s3-includes: only include system/filesys.h when needed.
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
49fcf653b1 s3-includes: only include system/passwd.h when needed.
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
d85f140826 s3-winbind: remove global inclusion of libwbclient.
Guenther
2011-03-30 01:13:06 +02:00
Günther Deschner
96487959e9 lib/util/util_pw: share more code between lib/util/util_pw.c and source3/lib/username.c
Guenther
2011-03-30 01:13:06 +02:00
Volker Lendecke
6bee354377 s3: Fix Coverity ID 2228: RESOURCE_LEAK
Holger, please check!
2011-03-27 22:22:11 +02:00
Andrew Tridgell
15e84a9a09 charcnv: removed the allow_badcharcnv and allow_bad_conv options to convert_string*()
we shouldn't accept bad multi-byte strings, it just hides problems

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-24 01:47:26 +01:00
Günther Deschner
48c604a3b7 s3-smbta-util: fix some buildwarnings.
Guenther
2011-03-23 19:24:35 +01:00
Volker Lendecke
e88b9df78b s3: Fix Coverity ID 2202, NULL_RETURNS 2011-03-23 12:19:57 +01:00
Andrew Tridgell
c8297073db s3-fault: removed the cont_fn from fault_setup()
cont_fn() was supposed to be a way to continue after a seg fault. It
could never be called however, as smb_panic() from fault_report()
could never return, as dump_core() never returns at the end of
smb_panic()

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104
2011-03-22 05:07:58 +01:00
Günther Deschner
5def6f0eca s3-net: make sure we set correct default user flags in rap_user_add().
Guenther
2011-03-18 01:24:07 +01:00
Günther Deschner
faf8becf22 s3-utils: run minimal_includes.pl over utils/*.c
Guenther
2011-03-18 01:24:06 +01:00
Sumit Bose
4562a7914d s3:net Find uid before using it
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-17 13:57:28 +01:00
Günther Deschner
3aa9d3005a s3-build: only include asn1 headers where actually needed.
Guenther
2011-03-16 23:46:18 +01:00
Volker Lendecke
2581cb7ada s3: Fix Coverity ID 1402: PASS_BY_VALUE
There's no point in passing GROUP_MAP on the stack

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 16 21:58:08 CET 2011 on sn-devel-104
2011-03-16 21:58:08 +01:00
Günther Deschner
e1f84330ba libcli/security: move display_sec headers to own header file and add to
security.h grouping header.

Guenther
2011-03-16 10:11:08 +01:00
Günther Deschner
7a91282c9f s3-libsmb: only include rap client when needed.
Guenther
2011-03-15 21:16:35 +01:00
Volker Lendecke
4f34955e2c s3: Fix Coverity ID 2290: Uninitialized read
We passed the structure including the uninitialized elements to
dcerpc_winreg_DeleteKey.
2011-03-15 11:10:42 +01:00
Günther Deschner
af2538d16f s3-build: remove -I../lib/addns.
Guenther
2011-03-10 23:25:04 +01:00
Volker Lendecke
c97ea5976c s3-net: Use wbcSidToStringBuf 2011-03-05 14:29:32 +01:00
Günther Deschner
ea29261186 s3-sessionid: avoid global include of sessionid.h
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar  2 12:58:12 CET 2011 on sn-devel-104
2011-03-02 12:58:12 +01:00
Günther Deschner
8643683dd8 s3-server_id: only include server_id where needed.
Guenther
2011-03-02 12:12:31 +01:00
Jelmer Vernooij
59a077d8f5 Fix some types
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-28 23:30:06 +01:00
Andreas Schneider
bf18403c81 s3-rpc_client: Move client pipe functions to own header. 2011-02-28 18:15:04 +01:00
Volker Lendecke
89d81b310e s3: Eliminate sys_select_intr from smbfilter 2011-02-28 16:40:19 +01:00
Gregor Beck
58081884f7 s3: smbcontrol to notify smbd about idmap changes
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 28 14:07:23 CET 2011 on sn-devel-104
2011-02-28 14:07:23 +01:00
Volker Lendecke
fec0baacb6 s3: Make is_zero_addr take a sockaddr_storage
All callers had to cast this anyway

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
2011-02-27 11:02:53 +01:00
Günther Deschner
66e040ee0a s3-printing: isolate print notification prototypes better.
Guenther
2011-02-22 21:52:18 +01:00
Volker Lendecke
943aac2e36 s3: Add "len" to pdb_set_hours 2011-02-19 11:32:49 +01:00
Andrew Bartlett
09c4a5cd9b s3-cluster Always fill in the clustering vnn element
This avoids this structure being partially uninitialised.

Adnrew Bartlett
2011-02-17 16:02:19 +01:00
Michael Adam
fbfa5c62b8 s3:net: fix usage for "net rpc registry export" 2011-02-16 12:56:40 +01:00
Günther Deschner
ca574482b8 s3: no need to globally include intl.h.
Guenther
2011-02-15 12:09:22 +01:00
Christian Ambach
d8a90b499b s3:utils enable sharesec for registry shares
Signed-off-by: Michael Adam <obnox@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb  9 16:41:31 CET 2011 on sn-devel-104
2011-02-09 16:41:31 +01:00
Gregor Beck
927102790e s3:net idmap: implement net idmap delete
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb  9 15:06:06 CET 2011 on sn-devel-104
2011-02-09 15:06:06 +01:00
Michael Adam
a6d45d0ad8 s3:net idmap dump: report correct database file when failed to open idmap db. 2011-02-09 14:00:35 +01:00
Gregor Beck
59ccfac211 s3:net idmap dump: use net_idmap_dbfile 2011-02-09 14:00:35 +01:00
Michael Adam
79307cf006 s3:net idmap restore: correctly abort operation if dbfile could not be determined 2011-02-09 14:00:34 +01:00
Michael Adam
92f856c513 s3:net idmap: fix error reporting in net_idmap_dbfile()
The last case which results in dbfile == NULL is not an
out of memory case but means no --db has been specified
and the idmap backend is not supported for auto-determining
the idmap tdb file.
2011-02-09 14:00:34 +01:00
Gregor Beck
e2795f5664 s3:net factor out net_idmap_dbfile 2011-02-09 14:00:34 +01:00
Gregor Beck
1f1a165ea9 s3:net idmap restore: fix segfault on missing input file 2011-02-09 14:00:34 +01:00
Gregor Beck
47f499abf6 s3:net add option --db 2011-02-09 14:00:34 +01:00
Michael Adam
872d913fa2 s3:testparm: add "--option" to testparm
This way one can test the --option feature with testparm.
E.g.:

testparm -s -v --option="parameter=value" | grep parameter

should print "parameter = value"
2011-02-09 14:00:34 +01:00
Jeremy Allison
a674a56a97 Add fdopendir to the VFS. We will use this to reuse a directory fd already open by NtCreateX.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Feb  9 00:55:22 CET 2011 on sn-devel-104
2011-02-09 00:55:22 +01:00
Volker Lendecke
5a0ee95b95 s3: Fix some nonempty blank lines and some typos
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb  9 00:01:45 CET 2011 on sn-devel-104
2011-02-09 00:01:45 +01:00
Gregor Beck
01d3da3c7c s3:net: remove unused net_idmap_help
Signed-off-by: Michael Adam <obnox@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Feb  8 11:50:37 CET 2011 on sn-devel-104
2011-02-08 11:50:37 +01:00
Michael Adam
3bccd2f3f3 s3:net conf: fix a comment typo 2011-02-07 18:37:42 +01:00
Andreas Schneider
34e8a50e5a s3-util: Moved eventlog_add_source to admin util.
This function is only used in the admin util.

Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-07 12:32:00 +01:00
Günther Deschner
00478b0559 s3-net: prefer dcerpc_lsa_X functions in "net rpc".
Guenther
2011-02-02 19:03:36 +01:00
Günther Deschner
eab00491f3 s3-net: prefer dcerpc_lsa_X functions in "net rpc rights".
Guenther
2011-02-02 19:03:26 +01:00
Günther Deschner
8055bc82b0 s3-net: use status variable in "net rpc rights".
Guenther
2011-02-02 19:03:20 +01:00
Günther Deschner
32064346f0 s3-net: prefer dcerpc_lsa_X functions in net_util.c
Guenther
2011-02-02 19:03:13 +01:00
Günther Deschner
63de60c2bc s3-net: prefer dcerpc_lsa_X functions in "net rpc join".
Guenther
2011-02-02 19:03:06 +01:00
Günther Deschner
61d18b7f08 s3-net: prefer dcerpc_lsa_X functions in "net rpc audit".
Guenther
2011-02-02 19:03:00 +01:00
Günther Deschner
d38d743166 s3-net: use status variable in "net rpc audit".
Guenther
2011-02-02 19:02:54 +01:00
Günther Deschner
50170d7fd5 s3-net: prefer dcerpc_samr_X functions in net_rpc_join_newstyle.
Guenther
2011-02-02 18:11:19 +01:00
Günther Deschner
b53c0c8c85 s3-net: use status variable in net_rpc_join_newstyle.
Guenther
2011-02-02 18:11:19 +01:00
Günther Deschner
91e6dad749 s3-dssync-passdb: add basic routines and net function.
Guenther
2011-02-02 15:45:20 +01:00
Stefan Metzmacher
1c1aebae82 s3:net: make some net_rpc_samsync.c functions static
metze
2011-02-02 15:45:20 +01:00
Stefan Metzmacher
0313969aed s3:net: "net rpc vampire" is an alias for "net rpc vampire passdb"
The should use exactly the same code path for both.

metze
2011-02-02 15:45:20 +01:00
Volker Lendecke
a62d67e639 s3: Fix a typo
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb  2 14:58:52 CET 2011 on sn-devel-104
2011-02-02 14:58:52 +01:00
Günther Deschner
a19c1cbb8d s3-net: prefer dcerpc_samr_X functions in rpc_trustdom_list.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  2 00:21:19 CET 2011 on sn-devel-104
2011-02-02 00:21:19 +01:00
Günther Deschner
c7b1432b6e s3-net: prefer dcerpc_samr_X functions in rpc_trustdom_del_internals.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
95ee07d8ab s3-net: prefer dcerpc_samr_X functions in rpc_trustdom_add_internals.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
49f08d1d7c s3-net: prefer dcerpc_samr_X functions in rpc_aliaslist_internals.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
37f2f518be s3-net: prefer dcerpc_samr_X functions in rpc_fetch_domain_aliases.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
bf10bbc074 s3-net: prefer dcerpc_samr_X functions in rpc_group_members_internals.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
20edb2d48b s3-net: prefer dcerpc_samr_X functions in rpc_list_alias_members.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
2a63433e94 s3-net: prefer dcerpc_samr_X functions in rpc_list_group_members.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
d280a52fdd s3-net: prefer dcerpc_samr_X functions in rpc_group_list_internals.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
84e3d14f7a s3-net: prefer dcerpc_samr_X functions in rpc_del_aliasmem.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
b9b2325f45 s3-net: prefer dcerpc_samr_X functions in rpc_del_groupmem.
Guenther
2011-02-01 23:29:14 +01:00
Günther Deschner
55e042a4f2 s3-net: prefer dcerpc_samr_X functions in rpc_add_aliasmem.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
f8147fbb14 s3-net: prefer dcerpc_samr_X functions in rpc_add_groupmem.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
e14c214ab3 s3-net: prefer dcerpc_samr_X functions in rpc_group_delete_internals.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
54b74c781d s3-net: prefer dcerpc_samr_X functions in rpc_sh_user_flag_edit_internals.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
1d3b378001 s3-net: prefer dcerpc_samr_X functions in rpc_sh_user_str_edit_internals.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
a87a9fc9ce s3-net: prefer dcerpc_samr_X functions in rpc_sh_user_show_internals.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
021e0b4cda s3-net: prefer dcerpc_samr_X functions in rpc_sh_handle_user.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
f140e892f6 s3-net: prefer dcerpc_samr_X functions in rpc_info_internals.
Guenther
2011-02-01 23:29:13 +01:00
Günther Deschner
e3aafb2a7f s3-net: prefer dcerpc_samr_X functions in net_rpc_sh_acct.c.
Guenther
2011-02-01 23:29:12 +01:00
Günther Deschner
753094d5d2 s3-net: add net_scan_dc non-ad variant.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb  1 17:48:40 CET 2011 on sn-devel-104
2011-02-01 17:48:40 +01:00
Michael Adam
e57d4c41d7 s3:net registry: ignore WERR_BADFILE when --force is given in deletekey[_recursive]
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Jan 30 14:53:13 CET 2011 on sn-devel-104
2011-01-30 14:53:13 +01:00
Michael Adam
e81ddbcade s3:net registry: fix a debug message. 2011-01-30 14:09:04 +01:00
Michael Adam
3649798bee s3:net registry: fix a debug message. 2011-01-30 14:09:04 +01:00
Günther Deschner
fc16baaf91 s3-net: use struct based dcerpc_spoolss_EnumPrinterData_r() call.
This is a workaround for a string issue we currently have with argument based
generated dcerpc client code (see bug #7804 for details).

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan 28 22:05:20 CET 2011 on sn-devel-104
2011-01-28 22:05:20 +01:00