summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_ads.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-net: add a new "net ads kerberos pac save" tool.Günther Deschner2014-03-121-0/+52
| | | | | | | | | | | | Use "filename=string" to define a file where to save the unencrypted PAC to. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Mar 12 13:02:59 CET 2014 on sn-devel-104
* s3-net: modify the current "net ads kerberos pac" command.Günther Deschner2014-03-121-38/+77
| | | | | | | | | | | Rename it to "net ads kerberos pac dump" and add a "type=num" option to allow dumping of individial pac buffer types. Ommitting type= or using type=0 will dump the whole PAC structure on stdout. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-kerberos: let kerberos_return_pac() return a PAC container.Günther Deschner2014-03-121-1/+4
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-kerberos: return a full PAC in kerberos_return_pac().Günther Deschner2014-03-121-1/+16
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-net: allow to provide custom local_service in "net ads kerberos pac".Günther Deschner2014-03-121-3/+11
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-net: change the way impersonation principals are used in "net ads ↵Günther Deschner2014-03-121-4/+10
| | | | | | | | | kerberos pac". Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-libads: pass down local_service to kerberos_return_pac().Günther Deschner2014-03-121-0/+8
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-rpc_cli: pass down ndr_interface_table to cli_rpc_pipe_open_noauth().Günther Deschner2013-08-051-1/+1
| | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* net ads join: Add support for specifying the machine account passwordAndrew Bartlett2013-03-061-0/+11
| | | | | | | This allows a predictable password to be specified, just like --machinepass does on samba-tool domain join. Andrew Bartlett Reviewed-by: Jeremy Allison <jra@samba.org>
* s3-net: mention optional impersonation principal for PAC retrieval.Günther Deschner2013-02-011-1/+1
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* net: Use new samba_getpass() function for 'net ads'.Andreas Schneider2012-12-031-1/+9
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* BUG 9326: Fix net ads join message for the dns domain.Andreas Schneider2012-10-291-1/+1
| | | | | | | | | | | | | We don't get a realm back from the server which is useable as a realm on Unix. On Unix they are case sensitive and on Windows they aren't. This confuses uses and if we write realm they try to use it as it came back in lowercase. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Mon Oct 29 18:26:19 CET 2012 on sn-devel-104
* s3-net: Fix DEBUG() location.Günther Deschner2012-10-021-1/+1
| | | | | | | Guenther Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Oct 2 18:06:17 CEST 2012 on sn-devel-104
* s3-net: give more control how to update/register DNS entries.Günther Deschner2012-10-021-1/+12
| | | | Guenther
* s3-net: move out some prototypes to net_dns.h.Günther Deschner2012-10-021-8/+1
| | | | Guenther
* s3-net: pass down struct net_context to the dns update calls.Günther Deschner2012-10-021-9/+11
| | | | Guenther
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-091-2/+8
|
* Check error returns from strupper_m() (in all reasonable places).Jeremy Allison2012-08-091-2/+8
|
* lib/param: Move all enum declarations to lib/paramAndrew Bartlett2012-07-241-0/+1
| | | | | | | | This is in preperation for the parameter table being made common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3-utils: Use ads_do_search_retry in net ads searchAndrew Bartlett2012-05-261-1/+1
| | | | | | | | | | | | This makes it possible to search against a slow server, as will fallback from 1000 to (eventually) 125 users at a time. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat May 26 03:53:34 CEST 2012 on sn-devel-104
* Move source3/libads/dns.c to lib/addnsSimo Sorce2012-05-231-1/+1
|
* s3-ads-dns: Break dependency on lp_parmSimo Sorce2012-05-231-2/+6
| | | | In preparation of making this code common to s3 and s4
* s3-net: Fix typo in comment.Karolin Seeger2012-05-081-1/+1
| | | | Karolin
* s3:net ads join: remove a useless empty comment blockMichael Adam2012-01-311-2/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Jan 31 18:37:45 CET 2012 on sn-devel-104
* s3:net ads join: add a comment for the call to _net_ads_join_dns_update()Michael Adam2012-01-311-0/+5
|
* s3:net ads join: reduce indentation in _net_ads_join_dns_updates()Michael Adam2012-01-311-46/+47
|
* s3:net ads join: move dns update code out to new function ↵Michael Adam2012-01-311-77/+84
| | | | _net_ads_join_dns_updates()
* s3:net ads join: improve comment for dns update blockMichael Adam2012-01-311-4/+4
|
* s3:net ads join: improve status evaluation for call to net_update_dns()Michael Adam2012-01-311-2/+5
| | | | untangle assignment from check and log error code in message if failed.
* s3:net ads join: interpret return code of ads_kinit_password() in dns update ↵Michael Adam2012-01-311-1/+8
| | | | | | block If failed, print according error message and skip the attempt to do dns update.
* s3:net ads join: check for malloc success and react accordingly in dns ↵Michael Adam2012-01-311-0/+5
| | | | update block
* s3:net ads join: check for success of fetching machine password in dns ↵Michael Adam2012-01-311-0/+5
| | | | | | update block log and cleanup accordingly if failed
* s3:net ads join: untangle assignment from check, fix return code and improve ↵Michael Adam2012-01-311-2/+8
| | | | | | | error logging only the dns update failed, not the join. Also do proper memory cleanup
* s3:net ads join: reduce indentation and improve logging in the dns update ↵Michael Adam2012-01-311-13/+17
| | | | | | code block by doing an early goto done upon error condition
* s3:net ads join: untangle assignment from check.Michael Adam2012-01-311-1/+2
|
* s3:utils: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher2011-11-031-1/+1
| | | | metze
* s3: fix typo in net ads join outputDavid Disseldorp2011-10-311-1/+1
| | | | | | | Space missing from "DNS update in aclustered setup". Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Mon Oct 31 16:01:35 CET 2011 on sn-devel-104
* s3-net: Make sure to always re-use the "good" dc for the DNS updates as well.Günther Deschner2011-10-281-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Oct 28 19:13:49 CEST 2011 on sn-devel-104
* s3-net: when all DNS servers fail to operate, the overal DNS registration resultGünther Deschner2011-10-101-0/+2
| | | | | | | | | must be a failure. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Oct 10 15:59:20 CEST 2011 on sn-devel-104
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-12/+12
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* Fix const warning.Jeremy Allison2011-06-011-1/+1
|
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-4/+4
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-2/+2
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* More const fixes... getting near the end now.Jeremy Allison2011-05-061-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 6 00:57:00 CEST 2011 on sn-devel-104
* More simple const fixups.Jeremy Allison2011-05-051-3/+3
|
* s3-libads Pass a struct sockaddr_storage to cldap routinesAndrew Bartlett2011-04-281-4/+3
| | | | | | | This avoids these routines doing a DNS lookup that has already been done, and ensures that the emulated DNS lookup isn't thrown away. Andrew Bartlett
* s3-waf: try to fix the non-ldap-but-krb5 build.Günther Deschner2011-04-151-1/+1
| | | | Guenther
* s3: Retry the join with the short nameVolker Lendecke2011-04-121-0/+5
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-build: remove -I../lib/addns.Günther Deschner2011-03-101-1/+1
| | | | Guenther