summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_samsync.c
Commit message (Collapse)AuthorAgeFilesLines
* net: Use dom_sid_str_bufVolker Lendecke2018-12-201-2/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* net: Don't depend on libnet_samsync anymoreVolker Lendecke2017-09-201-1/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* net: Remove NT4-based vampire keytabVolker Lendecke2017-09-201-155/+5
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* net: Remove NT4-based rpc vampire ldifVolker Lendecke2017-09-201-85/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* net: Remove rpc vampire from NT4 domainsVolker Lendecke2017-09-201-92/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* net: Remove rpc samdumpVolker Lendecke2017-09-201-45/+0
| | | | | | | | | This uses the NT4 replication commands. Samba does not have a server for this, no tests, and whoever needs to migrate a native domain can use an old Samba version Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libnet: pass in struct netlogon_creds_cli_context from the caller.Stefan Metzmacher2014-01-071-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3: print a nice warning when HAVE_ADS is not enabled but you still try to ↵Matthieu Patou2012-03-041-0/+5
| | | | do net rpc keytab vampire
* s3-utils/net: pass struct ndr_interface_table downAndrew Bartlett2012-01-181-7/+7
| | | | | | | | | This will allow the target service (as determined from the IDL) to be passed to GSSAPI (rather than the current, incorrect, "cifs"). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-9/+9
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-passdb: use passdb headers where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-dssync-passdb: add basic routines and net function.Günther Deschner2011-02-021-2/+96
| | | | Guenther
* s3:net: make some net_rpc_samsync.c functions staticStefan Metzmacher2011-02-021-24/+24
| | | | metze
* s3:net_rpc_vampire_keytab: don't return -1 on success (bug #7899)Stefan Metzmacher2011-01-031-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 3 19:05:11 CET 2011 on sn-devel-104
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-1/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3-util: use shared dom_sid_dup.Günther Deschner2010-09-201-2/+2
| | | | Guenther
* s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner2010-09-201-1/+2
| | | | Guenther
* s3-libnet: better separate headers.Günther Deschner2010-07-131-0/+2
| | | | Guenther
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-5/+5
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-0/+2
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* s3 net: Fix compile warningsKai Blin2010-01-191-7/+12
|
* s3/net: split up some printable stings to ease i18nBjörn Jacke2010-01-181-6/+6
| | | | | | If we put strings like "Usage:" into separate _() macros and not the whole "Usage:..." string we can cover much more messages by only one single translation. The drawback is that the message in the sources looks less pretty.
* Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table"Volker Lendecke2009-11-081-15/+8
| | | | This reverts commit 53f2a1595e76db9fe1b42db65b51895b73365993.
* s3: Make run_rpc_command take strings instead of a ndr_interface_tableVolker Lendecke2009-11-081-8/+15
|
* s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp ↵Günther Deschner2009-09-111-1/+1
| | | | | | and cli_rpc_pipe_open_ntlmssp. Guenther
* s3 net: i18n support for net rpc samsyncKai Blin2009-08-111-23/+27
|
* Revert "net: Use samba default command line arguments."Kai Blin2009-07-221-2/+2
| | | | | | | | | | This reverts commit fb262f79fab00374023e59476e8d05a1015a7041 and related commits c36031778e1983ddb11d3e1fcab35e738dbf94bc 72fd5fa6bb78a054fad5e5ebe19a0c0387a7d45b and 38cd0e086f50ce54d88a19aa5a6803469af90489 This change caused more trouble than it solved. We need to do this differently. Reverting so we don't accidently release this.
* s3:net: Fix Bug #6222. Default to DRSUAPI replication for net rpc vampire keytabStefan Metzmacher2009-07-131-4/+7
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* net: Use samba default command line arguments.Kai Blin2009-05-251-2/+2
| | | | | | | | | | | | | | | | | | Attention: The meaning of the -N flag changed. To get the old meaning for net groupmap set, use the long option --ntname The long option for using kerberos changed from --kerberos to --use-kerberos net rpc commands will now prompt for a password if none is given. As a benefit, net will now accept an authentication file like other samba command line tools. So no need to specify the password on the command line in scripts anymore. This should fix bug #6357 Signed-off-by: Kai Blin <kai@samba.org>
* s3-libnet-samsync: use samsync_ops.Günther Deschner2008-11-181-4/+4
| | | | Guenther
* s3-net: add "net rpc vampire passdb" that allows to take arguments.Günther Deschner2008-11-181-0/+13
| | | | Guenther
* s3-net: use net_scan_dc in net rpc vampire keytab.Günther Deschner2008-11-181-8/+27
| | | | Guenther
* s3-net-vampire: add support for partial replication (individual deltas).Günther Deschner2008-11-181-0/+109
| | | | Guenther
* [s3]make keytab filename argument mandatory to "net rpc vampire keytab"Michael Adam2008-11-111-4/+11
| | | | | | This prevents unintended overwriting of the default path /etc/krb5.keytab (e.g.). Michael
* net: Add missing colon to unify usage messages.Karolin Seeger2008-08-221-2/+2
| | | | | Karolin (This used to be commit c7aef4b38bd2b152b316d8d76b45be4b73ca315f)
* vampire keytab: add command line switch --clean-old-entries .Michael Adam2008-08-011-0/+1
| | | | | | | | | | This allows to control cleaning the keytab. It will only clean old occurences of keys that are replicated in this run. So if you want to ensure things are cleaned up, combine this switch with --force-full-repl or --single-obj-repl (+dn list). Michael (This used to be commit 21385e1c635ea67215eb1da90e7dca97ae2f5d56)
* vampire keytab: introduce switch --single-obj-repl.Michael Adam2008-08-011-1/+2
| | | | | | | | | | | | | | This controls whether single object replication is to be used. This only has an effect when at least one object dn is given on the commandline. NOTE: Now the default is to use normal replication with uptodateness vectors and use object dns given on the command line as a positive write filter. Single object replication is only performed when this new switch is specified. Michael (This used to be commit 0f81111ea8c049eb60f98d4939e520a5a562d2e6)
* libnet dssync: rename flag single to single_object_replicationMichael Adam2008-08-011-1/+1
| | | | | | | So that it is more obvious what this controls. Michael (This used to be commit 2360f0a19f0fb89798b814a02cfca335a4a35b6d)
* net rpc vampire: rename --repl-nodiff to --force-full-repl.Michael Adam2008-08-011-1/+1
| | | | | | | This more clear. Michael (This used to be commit 0ddde9aae88e6244276e1c143056a4bfc7c7fcca)
* libnet dssync: rename repl_nodiff flag to force_full_replication.Michael Adam2008-08-011-1/+1
| | | | | Michael (This used to be commit ec959b4609c3f4927a9f2811c46d738f9c78a914)
* libnet dssync: support lists of dns (instead of one dn) for single object ↵Michael Adam2008-08-011-1/+2
| | | | | | | | | | | replication. Just specify several DNs separated by spaces on the command line of "net rpc vampire keytab" to get the passwords for each of these accouns via single object replication. Michael (This used to be commit 6e53dc2db882d88470be5dfa1155b420fac8e6c5)
* vampire keytab: add switch --repl-nodiff to trigger full replication.Michael Adam2008-08-011-0/+2
| | | | | | | I.e. replication without keeping track of the up to date vector. Michael (This used to be commit d4b36e447bce8692416e132ab9f53a6282f54cac)
* dssync: allow replications of a single obj with net rpc vampire keytab.Michael Adam2008-08-011-0/+4
| | | | | | | | | | | | | | | | This is triggered by setting the new "single" flag in the dssync_context and filling the "object_dn" member with the dn of the object to be fetched. This call is accomplished by specifying the DRSUAPI_EXOP_REPL_OBJ extended operation in the DsGetNCCHanges request. This variant does honor an up-to-date-ness vectore passed in, but the answer does not return a new up-to-dateness vector. Call this operation as "net rpc vampire keytab /path/keytab object_dn" . Michael (This used to be commit f4a01178a3d8d71f416a3b67ce6b872420f211c0)
* dssync: replace the processing_fn by startup/process/finish ops.Michael Adam2008-08-011-1/+1
| | | | | | | | | | | | | This remove static a variable for the keytab context in the keytab processing function and simplifies the signature. The keytab context is instead in the new private data member of the dssync_context struct. This is in preparation of adding support for keeping track of the up-to-date-ness vector, in order to be able to sync diffs instead of the whole database. Michael (This used to be commit c51c3339f35e3bd921080d2e226e2422fc23e1e6)
* Refactoring: run_rpc_command uses ndr_syntax_id instead of pipe_idxVolker Lendecke2008-07-211-4/+6
| | | | (This used to be commit 850166ec0d17eb85a0c921dc3b966fac0677af4a)
* net rpc vampire: eliminate missing proto warning by making ↵Michael Adam2008-07-181-8/+8
| | | | | | | rpc_vampire_keytab_ds_internals static. Michael (This used to be commit 772a76ceb3cd1c041db3ebb5abe449ac6180070e)
* net_vampire: add code to vampire to a Kerberos keytab file using DRSUAPI.Günther Deschner2008-07-011-0/+50
| | | | | Guenther (This used to be commit 0ef420c3a478a8adce7483f14b45e9995bfa5e5d)
* net_vampire: add code to vampire a SAM database to a keytab file.Günther Deschner2008-06-241-2/+75
| | | | | Guenther (This used to be commit ee6e422c0e035aa4779fa718bb6f142827cc2de0)
* net_vampire: more libnet_samsync restructuring.Günther Deschner2008-06-231-27/+29
| | | | | Guenther (This used to be commit 3bcda522f025aff249678a8a086218679fc19c6b)
* net_vampire: prepend libnet_ to the public samsync functions.Günther Deschner2008-06-231-29/+29
| | | | | Guenther (This used to be commit f020c947cfb1482176af8827ed9c361d7c21e26f)