Günther Deschner
9fdeb7f7b3
s3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.
...
Guenther
2009-03-18 14:18:42 +01:00
todd stecher
9d4d2f70cb
S3: Fixes for coverity issues.
2009-02-10 14:43:14 -08:00
Günther Deschner
329b8775f5
s3-net: fix warning message for keytab usage.
...
Guenther
2009-02-03 15:32:48 +01:00
Dan Sledz
d96248a9b4
Add two new parameters to control how we verify kerberos tickets. Removes lp_use_kerberos_keytab parameter.
...
The first is "kerberos method" and replaces the "use kerberos keytab"
with an enum. Valid options are:
secrets only - use only the secrets for ticket verification (default)
system keytab - use only the system keytab for ticket verification
dedicated keytab - use a dedicated keytab for ticket verification.
secrets and keytab - use the secrets.tdb first, then the system keytab
For existing installs:
"use kerberos keytab = yes" corresponds to secrets and keytab
"use kerberos keytab = no" corresponds to secrets only
The major difference between "system keytab" and "dedicated keytab" is
that the latter method relies on kerberos to find the correct keytab
entry instead of filtering based on expected principals.
The second parameter is "dedicated keytab file", which is the keytab
to use when in "dedicated keytab" mode. This keytab is only used in
ads_verify_ticket.
2009-02-01 20:23:31 -08:00
Jeremy Allison
07e0094365
Fix all warnings in source3 with gcc4.3.
...
Jeremy.
2008-12-31 18:06:57 -08:00
Stefan Metzmacher
588f5aae66
s3: correctly detect if the current dc is the closest one
...
ads->config.tried_closest_dc was never set.
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit dfe5b00db35e1e7c7bb3ba36729fc3f97eb48db3)
2008-12-13 11:42:22 +01:00
Jelmer Vernooij
44b728958a
Use common error definitions.
2008-10-23 15:35:21 +02:00
Günther Deschner
4b59ecb903
s3-build: no need to duplicate generated ndr_ prototypes.
...
Guenther
2008-10-20 19:47:00 +02:00
Jelmer Vernooij
f0c4829e82
Remove silly safe_free() function which is a wrapper around SAFE_FREE().
...
Since it's a function it just sets the local pointer to NULL and basically
is an equivalent to free().
It also claims it's being used for callbacks but isn't used that way
anywhere.
2008-10-19 13:06:14 +02:00
Jelmer Vernooij
1f3e4f39c5
Use GUID_string rather than smb_uuid_string().
2008-10-14 02:26:18 +02:00
Jelmer Vernooij
cb78d4593b
Cope with changed signature of http_timestring().
2008-10-11 23:57:44 +02:00
Günther Deschner
81fde58551
s3-nbt: remove double nbt netlogon opcodes.
...
Guenther
2008-09-25 20:11:55 +02:00
Günther Deschner
f07431f5ba
s3-nbt: use the new generated nbt.
...
Guenther
2008-09-24 03:34:23 +02:00
Günther Deschner
5bea31aa3c
libnetjoin: support kerberized joining/unjoing ( fix #5416 ).
...
Guenther
(This used to be commit da6e0f4f375aa533c4c765891c960070478972eb)
2008-08-11 19:52:23 +02:00
Volker Lendecke
1335da2a7c
Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
2008-07-20 17:37:11 +02:00
Karolin Seeger
7c451b9b89
net ads: Fix typos.
...
Karolin
(This used to be commit 63c1a5146e25e05678d2bef95286add5c95a5f38)
2008-06-24 16:30:33 +02:00
Günther Deschner
6ce0c85172
net: Fix bug #5542 (samsync contains empty passwords).
...
Guenther
(cherry picked from commit 1a22e975dd1255f3557c1cd873d877aa35822afc)
(This used to be commit ad8392cf7c817ee29a03bc6f515bf1cc18a29eda)
2008-06-13 12:23:57 +02:00
Kai Blin
8f1f62af28
net: Fix net_ads.c build for the HAVE_ADS == 0 case.
...
Thanks to Karolin for catching this one.
(This used to be commit 7f52998f5461ed7d976faa2254464336dcf73c02)
2008-06-12 15:46:12 +02:00
Kai Blin
255bdb2602
net: Rename functable3 to functable, get rid of old functables
...
(This used to be commit bb7c5fc4ec77db4073d3beccf12af12910b6bd07)
2008-06-10 09:48:21 +02:00
Kai Blin
54bc155736
net: Make "net ads" use functable3
...
(This used to be commit 64e3dc63966ecf216b354263e4bd5dfd1491abcc)
2008-06-10 09:47:15 +02:00
Günther Deschner
d7772433bf
net: print NBT_SERVER_X_SECRET_DOMAIN_6 flags in "net ads lookup".
...
Guenther
(This used to be commit 420390ba0ef6b45f18a8fd37974b1fbee0bd1502)
2008-06-04 01:35:43 +02:00
Kai Blin
0210f7af91
net: The top level help function for net cmd is always net_cmd_usage
...
(This used to be commit f7d0903a58b0b0fc248a613937a101f15baa5311)
2008-05-20 14:28:12 +02:00
Kai Blin
007f0e19dc
net: Split out "net group"
...
(This used to be commit 3ddd9c09e3b51df01ac34a9a1537e8954d2b1167)
2008-05-20 14:27:40 +02:00
Kai Blin
572de942c7
net: Split out "net user"
...
(This used to be commit 4ca08a5acc90c77d56f8f3e38443f23f43f034e8)
2008-05-20 14:27:27 +02:00
Kai Blin
16938883e6
net: Use true/false instead of True/False.
...
(This used to be commit a8b567aac3b0e39cfe67fb97167b10312ca5e73a)
2008-05-20 14:27:08 +02:00
coffeedude
ed08bd3e83
net ads: Upper case he realm name when calling kinit() using machine creds.
...
Needed fix for the DNS Update option as part of "net ads join"
(This used to be commit aebae0b71b427838fdc6344d69d6dea87a5dd58b)
2008-05-12 17:35:55 -05:00
Volker Lendecke
232853d700
Fix the build with DNS_UPDATES
...
(This used to be commit 6c9500c290fe0d6d71d4c33eb265906ce3a1d9f3)
2008-05-10 10:58:56 +02:00
Kai Blin
f576910944
net: Remove globals
...
(This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
2008-05-10 09:22:27 +02:00
Günther Deschner
cdd9913c4a
cldap: let ads_cldap_netlogon() return all possible cldap replies.
...
Guenther
(This used to be commit 6f9d5e1cc94bc90685b54c04622b8f3357bd2f69)
2008-05-09 14:59:18 +02:00
Günther Deschner
bcbac69d1a
cldap: avoid duplicate definitions so remove ads_cldap.h.
...
Guenther
(This used to be commit 538eefe22ad69540b9f73ffaa613d6be045de199)
2008-04-21 20:21:40 +02:00
Günther Deschner
1dd7ab38e7
cldap: add talloc context to ads_cldap_netlogon().
...
Guenther
(This used to be commit 4cee7b1bd5cd97c414b73d6f39238958480cdcf3)
2008-04-21 20:21:40 +02:00
Günther Deschner
ba98dd4989
libads: Use libnbt for CLDAP reply parsing.
...
Guenther
(This used to be commit 751f3064a508341c0ebae45e8de9f5311d915d70)
2008-04-21 20:21:39 +02:00
Günther Deschner
6f4b7fcf97
net: Be more tolerant while joining.
...
Guenther
(This used to be commit 70b7b331d9e2d915e6209fca5900f41fae4866fd)
2008-04-17 00:08:24 +02:00
Günther Deschner
ae1e1085a1
libnetjoin/net: Fix lp_config_backend_is_registry() handling.
...
Thanks obnox, now we can net ads join and net ads leave with zero
configuration changes if "config backend = registry".
Guenther
(This used to be commit 9003881773de787a51ceadcdc2cb1e95f6979763)
2008-04-14 23:07:55 +02:00
Günther Deschner
4122dabbf9
net: abort when lp_realm is not set in net_ads_leave().
...
Guenther
(This used to be commit 53735edcbb059e73c51ae17d4ff75d2a4dee53e5)
2008-04-14 22:58:38 +02:00
Günther Deschner
113b94faf1
net: exit early in net_ads_join() if the domain is not set.
...
Guenther
(This used to be commit 8331fbe735e2bec386ab8fc1645dc371d45d3063)
2008-04-14 16:16:25 +02:00
Günther Deschner
bc65d96782
net: use WERROR for check_ads_config().
...
Guenther
(This used to be commit 9176057986be63c7ebebb56f7daabbc3883802c5)
2008-04-14 16:13:52 +02:00
Günther Deschner
fffb304fec
net: the success of secrets_init is checked by libnetjoin now.
...
Guenther
(This used to be commit 0a6a5d082426ca82accf18fffa7740683a42cac1)
2008-04-14 15:47:30 +02:00
Volker Lendecke
7af3ebdac0
Fix Coverity ID 480
...
(This used to be commit 45677e8694f0e383baa65712faec6a565ec0ce5c)
2008-03-23 18:28:23 +01:00
Günther Deschner
5259a7a808
Enable libnetjoin debugging for now but avoid printing passwords.
...
The gen_ndr needs proper fixing still.
Guenther
(This used to be commit 966d7244d7765d285a7026b97e6093fd1f8d83ce)
2008-03-07 18:31:13 +01:00
Günther Deschner
f7b4485fbe
Move talloc_init to the right place in "net ads join".
...
Guenther
(This used to be commit 8cd07c1fa8f435f7ff3dc79c195da9324fb2452f)
2008-03-04 11:04:36 +01:00
Günther Deschner
27310f0768
Remove original copy of now redundant join code.
...
Jerry, I checked this very carefully that nothing got lost. The only thing I need to
re-add still is the normalized DN handling for account precreation in "net ads join".
Guenther
(This used to be commit a5c6347644f2aa138a8e67ffe6c167847df941d0)
2008-02-28 19:54:35 +01:00
Günther Deschner
642f46dcf9
Some fixes for net ads join (uninitialized vars).
...
Guenther
(This used to be commit 735235e32bf41a7564ce2d585c1dae187b00bf6b)
2008-02-28 14:29:44 +01:00
Günther Deschner
e5775b4fae
Use libnet_Join() for "net ads join".
...
Guenther
(This used to be commit 9a7a2777e4ea1a2b5d7c800af8522b38cf22c511)
2008-02-28 14:19:36 +01:00
Günther Deschner
4d55efe4ab
Nicen error output in net_ads_leave.
...
Guenther
(This used to be commit b0d1db95e5d7590f9c67be7bf5cb78adfee16635)
2008-02-28 14:11:21 +01:00
Günther Deschner
bbe6d400e7
Re-arrange dns update block during "net ads join" a little.
...
Guenther
(This used to be commit 5d30e9f9fef98de7764ae53d3cbe659b78ae9fce)
2008-02-28 13:04:30 +01:00
Günther Deschner
42e301570b
Use libnet_Unjoin() for "net ads leave".
...
Guenther
(This used to be commit 11a19e88e208e09d7590370f2e68aa1df5c89e31)
2008-02-28 12:09:06 +01:00
Günther Deschner
c3ef76593b
Some cosmetics for net_derive_salting_principal().
...
Guenther
(This used to be commit 6f8e83b43085c038bb8fb2500319fed1daf6e4e4)
2008-02-28 11:38:00 +01:00
Günther Deschner
965774fa8f
Fix some more callers of PAC_DATA.
...
Guenther
(This used to be commit ea609d1b0e82d7c366dd73013228003136264b64)
2008-02-17 02:12:00 +01:00
Günther Deschner
c920764b19
Apply const to rpccli_lsa_query_info_policy() and rpccli_lsa_query_info_policy2().
...
Guenther
(This used to be commit 7a3fe68bef7acde9d9f8a7a44ce7e9432f3c5a95)
2008-01-15 16:40:22 +01:00