Günther Deschner
9c8badc2a5
s3-net: add a new "net ads kerberos pac save" tool.
...
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
2014-03-12 13:02:59 +01:00
Günther Deschner
9e01f3cbc4
s3-net: modify the current "net ads kerberos pac" command.
...
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>
2014-03-12 10:57:27 +01:00
Günther Deschner
a8c2807a26
s3-kerberos: let kerberos_return_pac() return a PAC container.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-03-12 10:13:20 +01:00
Günther Deschner
1270e35ba7
s3-kerberos: return a full PAC in kerberos_return_pac().
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-03-12 10:13:20 +01:00
Günther Deschner
35a1ed22f6
s3-net: allow to provide custom local_service in "net ads kerberos pac".
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-03-12 10:13:20 +01:00
Günther Deschner
9725a86e60
s3-net: change the way impersonation principals are used in "net ads kerberos pac".
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-03-12 10:13:20 +01:00
Günther Deschner
932490ae08
s3-libads: pass down local_service to kerberos_return_pac().
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-03-12 10:13:19 +01:00
Günther Deschner
9813fe2b04
s3-rpc_cli: pass down ndr_interface_table to cli_rpc_pipe_open_noauth().
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-08-05 10:30:00 +02:00
Andrew Bartlett
c66632046d
net ads join: Add support for specifying the machine account password
...
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>
2013-03-06 14:46:43 -08:00
Günther Deschner
87157f04d1
s3-net: mention optional impersonation principal for PAC retrieval.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-02-01 19:38:07 +01:00
Andreas Schneider
bed60120d4
net: Use new samba_getpass() function for 'net ads'.
...
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2012-12-03 14:35:09 +01:00
Andreas Schneider
669a9236c3
BUG 9326: Fix net ads join message for the dns domain.
...
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
2012-10-29 18:26:19 +01:00
Günther Deschner
7751d03a1e
s3-net: Fix DEBUG() location.
...
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
2012-10-02 18:06:17 +02:00
Günther Deschner
0eded14f19
s3-net: give more control how to update/register DNS entries.
...
Guenther
2012-10-02 16:22:31 +02:00
Günther Deschner
5d4247ae74
s3-net: move out some prototypes to net_dns.h.
...
Guenther
2012-10-02 16:22:31 +02:00
Günther Deschner
a2fec69b09
s3-net: pass down struct net_context to the dns update calls.
...
Guenther
2012-10-02 16:22:31 +02:00
Jeremy Allison
b70f23c2b5
Correctly check for errors in strlower_m() returns.
2012-08-09 12:08:18 -07:00
Jeremy Allison
526e875cec
Check error returns from strupper_m() (in all reasonable places).
2012-08-09 12:06:54 -07:00
Andrew Bartlett
f3562424b6
lib/param: Move all enum declarations to lib/param
...
This is in preperation for the parameter table being made common.
Andrew Bartlett
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-24 11:01:17 +02:00
Andrew Bartlett
e7e6276092
s3-utils: Use ads_do_search_retry in net ads search
...
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
2012-05-26 03:53:34 +02:00
Simo Sorce
34a65739d3
Move source3/libads/dns.c to lib/addns
2012-05-23 17:51:48 +03:00
Simo Sorce
a7e94fce3f
s3-ads-dns: Break dependency on lp_parm
...
In preparation of making this code common to s3 and s4
2012-05-23 17:51:48 +03:00
Karolin Seeger
48d57d7636
s3-net: Fix typo in comment.
...
Karolin
2012-05-08 16:46:33 +02:00
Michael Adam
8972c92342
s3:net ads join: remove a useless empty comment block
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Jan 31 18:37:45 CET 2012 on sn-devel-104
2012-01-31 18:37:45 +01:00
Michael Adam
976672bf80
s3:net ads join: add a comment for the call to _net_ads_join_dns_update()
2012-01-31 17:00:30 +01:00
Michael Adam
be312e76d2
s3:net ads join: reduce indentation in _net_ads_join_dns_updates()
2012-01-31 17:00:30 +01:00
Michael Adam
7e5c5bdcc4
s3:net ads join: move dns update code out to new function _net_ads_join_dns_updates()
2012-01-31 17:00:30 +01:00
Michael Adam
1768d3621a
s3:net ads join: improve comment for dns update block
2012-01-31 17:00:30 +01:00
Michael Adam
8f9b43281d
s3:net ads join: improve status evaluation for call to net_update_dns()
...
untangle assignment from check and log error code in message if failed.
2012-01-31 17:00:30 +01:00
Michael Adam
9cd7b8f04d
s3:net ads join: interpret return code of ads_kinit_password() in dns update block
...
If failed, print according error message and skip the attempt to do dns update.
2012-01-31 17:00:30 +01:00
Michael Adam
4831b6e6bb
s3:net ads join: check for malloc success and react accordingly in dns update block
2012-01-31 17:00:30 +01:00
Michael Adam
ca913c98a6
s3:net ads join: check for success of fetching machine password in dns update block
...
log and cleanup accordingly if failed
2012-01-31 17:00:30 +01:00
Michael Adam
04fa9a389c
s3:net ads join: untangle assignment from check, fix return code and improve error logging
...
only the dns update failed, not the join.
Also do proper memory cleanup
2012-01-31 17:00:30 +01:00
Michael Adam
63d9b5d75a
s3:net ads join: reduce indentation and improve logging in the dns update code block
...
by doing an early goto done upon error condition
2012-01-31 17:00:30 +01:00
Michael Adam
1d83f2118e
s3:net ads join: untangle assignment from check.
2012-01-31 17:00:30 +01:00
Stefan Metzmacher
92a6f577ce
s3:utils: s/Undefined/SMB_SIGNING_DEFAULT/
...
metze
2011-11-03 16:55:12 +01:00
David Disseldorp
8b375eef24
s3: fix typo in net ads join output
...
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
2011-10-31 16:01:35 +01:00
Günther Deschner
151bb290d1
s3-net: Make sure to always re-use the "good" dc for the DNS updates as well.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 28 19:13:49 CEST 2011 on sn-devel-104
2011-10-28 19:13:49 +02:00
Günther Deschner
7119c8ba14
s3-net: when all DNS servers fail to operate, the overal DNS registration result
...
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
2011-10-10 15:59:20 +02:00
Andrew Bartlett
74eed8f3ed
s3-param Remove special case for global_myname(), rename to lp_netbios_name()
...
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
2011-06-09 12:40:09 +02:00
Jeremy Allison
24ce9d52a6
Fix const warning.
2011-06-01 23:53:07 +02:00
Andrew Bartlett
da662b82b8
s3-lib Replace StrnCaseCmp() with strncasecmp_m()
...
strncasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.
Andrew Bartlett
2011-05-18 16:12:08 +02:00
Andrew Bartlett
c615ebed6e
s3-lib Replace StrCaseCmp() with strcasecmp_m()
...
strcasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.
Andrew Bartlett
2011-05-18 16:12:08 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Jeremy Allison
9eee6e2fd2
More const fixes... getting near the end now.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 6 00:57:00 CEST 2011 on sn-devel-104
2011-05-06 00:57:00 +02:00
Jeremy Allison
f85e095dd2
More simple const fixups.
2011-05-05 23:56:08 +02:00
Andrew Bartlett
818ec32d0c
s3-libads Pass a struct sockaddr_storage to cldap routines
...
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
2011-04-28 05:30:20 +02:00
Günther Deschner
6768b65123
s3-waf: try to fix the non-ldap-but-krb5 build.
...
Guenther
2011-04-15 12:37:55 +02:00
Volker Lendecke
feb3cdee36
s3: Retry the join with the short name
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-12 13:24:24 +02:00
Günther Deschner
af2538d16f
s3-build: remove -I../lib/addns.
...
Guenther
2011-03-10 23:25:04 +01:00