1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

369 Commits

Author SHA1 Message Date
Günther Deschner
cbd07aa047 libnetjoin: Fix unjoining when no KRB5CCNAME is around.
Guenther
(This used to be commit 7fd237c545e0a7e0029195dbbb6691571abdfe84)
2008-04-14 16:15:18 +02:00
Günther Deschner
a4e0f60c4e libnetjoin: Remove machine account if we failed to set password.
Guenther
(This used to be commit db5e0ed186429667a7f6fc67e4b19a7ca75f357e)
2008-04-14 14:44:58 +02:00
Günther Deschner
e33b13e826 libnetjoin: Fix joining when no KRB5CCNAME is around.
Guenther
(This used to be commit 512e6ca0a9be9fe35994ec1010110573a5b551d1)
2008-04-14 12:33:10 +02:00
Günther Deschner
99d3590455 Fix NETLOGON credential chain with Windows 2008 all over the place.
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.

Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.

Guenther
(This used to be commit 0970369ca0cb9ae465cff40e5c75739824daf1d0)
2008-04-02 11:12:47 +02:00
Günther Deschner
8b29c8f634 Support "net ads join" format while joining to a specific ou.
libnetjoin now supports Computers/Servers/Unix as well as
ou=Computers,ou=Servers,ou=Unix,dc=ber,dc=realm,dc=com.

Guenther
(This used to be commit c0be84c96d8133c6b77d1f0efe41f5f2373febb3)
2008-03-28 16:43:59 +01:00
Günther Deschner
14b6e9d46b Add Support for DOMAIN\DCNAME syntax in libnetjoin.
This format is used by Windows to enforce joining to a specific DC.

Guenther
(This used to be commit cc654892c0d76dea001cd8f7bd6f50cf9e89e9c9)
2008-03-28 14:15:20 +01:00
Michael Adam
6f7cfeddd6 libsmbconf: add a "path" variable to the conf context.
This is passed to the module init routines.
In case of the registry, this is the path of the
basekey in registry, that is to be used, defaulting
to KEY_SMBCONF (HKLM\software\samba\smbconf), when
NULL is given. This is the only case currently used.

In order to support other keys, registry initialization
for smbconf has to be changed to support different keys.

Michael
(This used to be commit 96434d9dc7a66773e313cc128af57493dee245a1)
2008-03-21 18:19:24 +01:00
Volker Lendecke
c69c5c132a Fix Coverity ID 547
Günther, please check. If r->in.ads==NULL, we can't call ads_leave_realm at
all.

Thanks,

Volker
(This used to be commit 120d8c889fa9ad61c74f1f936e83537513454648)
2008-03-21 10:40:40 +01:00
Michael Adam
fececde181 libsmbconf: add backend specific init function.
Hide generic init function taking smbconf_ops argument
from public api.

Michael
(This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21 02:25:56 +01:00
Michael Adam
23b1d721b8 libsmbconf: rename smbconf_close() to smbconf_shutdown().
Michael
(This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
2008-03-21 02:25:56 +01:00
Michael Adam
adf5bf554c libsmbconf: rename smbconf_open() to smbconf_init().
That's more appropriate.

Michael
(This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
2008-03-21 02:25:56 +01:00
Michael Adam
6274929b1e libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael
(This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)
2008-03-17 18:03:02 +01:00
Michael Adam
670418c116 Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.
The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.

In the same breath, the api is fixed (not generated by make proto anymore).

Michael
(This used to be commit 5315ef41f403b96715dd68b512e9e74662e2910a)
2008-03-17 18:03:02 +01:00
Günther Deschner
d06274b541 Add secure_channel_type to libnetjoin.
Guenther
(This used to be commit f88910c1e5186737da4eda5a7a396c3238fc6775)
2008-03-04 19:04:54 +01:00
Günther Deschner
5a4182012d Use TALLOC_FREE in libnetjoin debugging dump code.
Guenther
(This used to be commit b753087ff79c1d35a409eddc1f61e115e887c1e1)
2008-03-04 11:07:13 +01:00
Günther Deschner
422af9a516 Make sure we are still able to join Windows 2008.
Guenther
(This used to be commit aa9c0f587718f4d647e87b9662acbedba042b9cb)
2008-03-01 16:14:39 +01:00
Günther Deschner
53d55794df libnetjoin: add fallback to level 24 samr setinfo so that libnet can join NT4.
Guenther
(This used to be commit bc2d3d51449831146a9faf6e809e7a91d174659c)
2008-02-29 01:27:52 +01:00
Günther Deschner
29222fa551 libnetjoin: Trying to avoid confusion between acct_flags, acb_info and
access_desired.

Guenther
(This used to be commit 63894e5c93ef0663fc58bcc191777cd1aca7e21c)
2008-02-29 01:25:45 +01:00
Günther Deschner
2306574570 libnetjoin: Merge in comments, debugs and missing code from original join code.
Guenther
(This used to be commit 09e6010159cb9c2a5d86861889b8c2a07bd39a8d)
2008-02-28 19:49:07 +01:00
Günther Deschner
15f6e27bd5 Add some more error handling in libnetjoin.
Guenther
(This used to be commit 892b2bc0cf1692c5707d322d0eb711b8245a3a96)
2008-02-28 17:05:38 +01:00
Günther Deschner
0d8985f2da Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.
Guenther
(This used to be commit b1a4b21f8c35dc23e5c986ebe44d3806055eb39b)
2008-02-28 12:40:55 +01:00
Günther Deschner
7347e1ff47 Store domain_is_ad info as early as possible in libnetjoin.
Guenther
(This used to be commit c4ba68aa94888eace393b91a669e22b27ffaba3e)
2008-02-28 11:38:01 +01:00
Günther Deschner
46bdaa5d37 Check for mandatory domain name in libnetjoin/unjoin.
Guenther
(This used to be commit 95bdf2f23c195cad1b317995e362f153695e793a)
2008-02-28 11:38:01 +01:00
Günther Deschner
4ba6c04d0a Delete affinity cache entries while unjoining with libnetunjoin.
Guenther
(This used to be commit 0315b8e53dca9a836d6bc2282fb1192f40545601)
2008-02-28 11:38:01 +01:00
Günther Deschner
09886976f6 Fill in machine account manipulation flags while unjoining in libnetunjoin.
Guenther
(This used to be commit 23ae67158e6506199318025e3dd5fd5c0b099548)
2008-02-28 11:38:01 +01:00
Günther Deschner
1d807c3c29 Add preliminary libnet_join_post_verify call to libnetjoin.
Guenther
(This used to be commit f0e319a18d86303aeb73c08841024c27c1b135cd)
2008-02-28 11:38:01 +01:00
Günther Deschner
39ba91fd83 Merge all connect ads calls into libnet_join_post_processing_ads().
Guenther
(This used to be commit be96baeffc60d05d8e297034e5253c8b75512ab2)
2008-02-28 11:38:01 +01:00
Günther Deschner
97c2dfc52f Use W_ERROR_NOT_OK_GOTO_DONE macro in libnetjoin.
Guenther
(This used to be commit fec230b28f456469bce051a2b26249d2026a48ea)
2008-02-28 11:38:01 +01:00
Michael Adam
3e3df1bfe2 Add a function libnet_conf_get_seqnum() to the libnet_conf API.
This is to provide a change sequence number to users, so that they
can use it to detect change in the config and trigger a reload.

Michael
(This used to be commit a0b12f4d815fa92c8826954e6d73546c8a751583)
2008-02-19 09:09:04 +01:00
Michael Adam
9af84dd382 Rename registry_init_regdb() to registry_init_smbconf().
That's what it actually is.

Michael
(This used to be commit 9d3c27f55726dbdce41fcf71c8bc1a7829340268)
2008-02-15 16:23:10 +01:00
Günther Deschner
e2b3aad817 Collect all init_lsa_string varients in one place.
Guenther
(This used to be commit f4581e9f4482566fba9436d5ae058b8d840fa394)
2008-02-12 22:05:39 +01:00
Günther Deschner
bc742a06a2 Remove all callers of rpccli_samr_setuserinfo2 and replace with
rpccli_samr_SetUserInfo (see the opcode mixup in rpc_samr.h).

Guenther
(This used to be commit bdc49185036060ebb9c727767dce52e4b01bd8b4)
2008-02-12 18:53:59 +01:00
Günther Deschner
b1c6104fa4 Use every
(This used to be commit d9cec295bf55b3a7e16f548cc4bf64ce474b41e9)
2008-02-12 18:21:52 +01:00
Günther Deschner
90631dd2c2 Removing unused ACCT_-flags.
Guenther
(This used to be commit d1e5a5a7f9dfb5756398e99cf09a4712d2b42682)
2008-02-12 09:48:47 +01:00
Günther Deschner
210a4ab76f Use rpccli_samr_LookupNames() in libnetjoin.
Guenther
(This used to be commit e62bfd2deea81f188cd4b5274218c3df64782aa7)
2008-02-08 15:30:35 +01:00
Günther Deschner
adeb94a9a6 Use rpccli_lsa_QueryInfoPolicy() in libnet_join.
Guenther
(This used to be commit 28ef55cbf1662dfe6b64a837ade830f5c864b4b9)
2008-02-08 10:26:51 +01:00
Günther Deschner
3783e6af8a Use rpccli_lsa_QueryInfoPolicy2 in libnet join.
Guenther
(This used to be commit ddc2fc16bf18fe3ab8a0fc0021826253d5f4ed32)
2008-02-08 10:16:00 +01:00
Günther Deschner
270ba9c238 Use rpccli_samr_Connect2() all over the place.
Guenther
(This used to be commit bdf8d562621e1a09bf83e2009dec24966e7fdf22)
2008-02-04 22:12:40 +01:00
Günther Deschner
ddbe4ea6b7 Use rpccli_samr_CreateUser2() all over the place.
Guenther
(This used to be commit 701af69118c9634c7dc0d5c10152ce776787694d)
2008-02-01 16:29:20 +01:00
Günther Deschner
37b56c0113 Use rpccli_samr_OpenUser() all over the place.
Guenther
(This used to be commit da90eb7653554d242da83ed98adae35ced3a2938)
2008-02-01 12:30:15 +01:00
Günther Deschner
42960f817a Use rpccli_samr_OpenDomain() all over the place.
Guenther
(This used to be commit e4e9d72724d547e1405b2ed4cec509d50ec88c8d)
2008-02-01 12:29:10 +01:00
Günther Deschner
5334b364c2 Remove rpccli_samr_close and use pidl generated function instead.
Guenther
(This used to be commit 64f0889401855ab76953bfae5db4fe4df19ad8a5)
2008-01-31 11:09:11 +01:00
Günther Deschner
5ab43ae0d8 Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
(This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)
2008-01-29 15:09:56 +01:00
Günther Deschner
92183450f1 Trying to avoid defining new SAMR acct creation flags when we already have them with different
names. Matt, Jeremy, please check.

Guenther
(This used to be commit d4a9e46edf7336f673c001c559af96eb0ecf9f6f)
2008-01-25 01:04:30 +01:00
Jeremy Allison
a0186fb78d Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
(This used to be commit 7d94f97947b7edfcf3ec52f0125e4593d6d54c05)
2008-01-23 13:54:02 -08:00
Michael Adam
feb77c978b Add another check for talloc failure to libnet_conf
Michael
(This used to be commit 196e4ce8c5dd5aab518aaa7d170eb1fb5d66bcd1)
2008-01-21 22:49:45 +01:00
Michael Adam
c5c38d6227 Fix formatting of multi_sz registry values.
Don't print only the last component.

Michael
(This used to be commit 654e96208ec847e32797cbd2442ef9e73c014567)
2008-01-21 22:49:45 +01:00
Michael Adam
7f2e253efb Use talloc_stackframe() for temporary contexts throughout libnet_conf.c
Michael
(This used to be commit 4d734106b70b9b6029b537fe11f8b3c1aebd42cf)
2008-01-21 22:49:45 +01:00
Michael Adam
188bfbc192 Add a check for talloc failure. - Pointed out by Volker.
Michael
(This used to be commit bdc49b07cc6de36c9319254a131858c9a7f9dd53)
2008-01-21 22:49:45 +01:00
Michael Adam
7bfceba4bc Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael
(This used to be commit c5a7d421c512a6221b0300549d7b5de0368d252e)
2008-01-16 17:10:02 +01:00