summaryrefslogtreecommitdiff
path: root/source3/libnet/libnet_join.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-02Fix NETLOGON credential chain with Windows 2008 all over the place.Günther Deschner1-2/+1
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-03-28Support "net ads join" format while joining to a specific ou.Günther Deschner1-0/+5
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-28Add Support for DOMAIN\DCNAME syntax in libnetjoin.Günther Deschner1-0/+58
This format is used by Windows to enforce joining to a specific DC. Guenther (This used to be commit cc654892c0d76dea001cd8f7bd6f50cf9e89e9c9)
2008-03-21libsmbconf: add a "path" variable to the conf context.Michael Adam1-2/+2
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-21Fix Coverity ID 547Volker Lendecke1-4/+1
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-21libsmbconf: add backend specific init function.Michael Adam1-2/+2
Hide generic init function taking smbconf_ops argument from public api. Michael (This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21libsmbconf: rename smbconf_close() to smbconf_shutdown().Michael Adam1-2/+2
Michael (This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
2008-03-21libsmbconf: rename smbconf_open() to smbconf_init().Michael Adam1-2/+2
That's more appropriate. Michael (This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
2008-03-17libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .Michael Adam1-17/+17
Michael (This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)
2008-03-04Add secure_channel_type to libnetjoin.Günther Deschner1-1/+3
Guenther (This used to be commit f88910c1e5186737da4eda5a7a396c3238fc6775)
2008-03-04Use TALLOC_FREE in libnetjoin debugging dump code.Günther Deschner1-2/+2
Guenther (This used to be commit b753087ff79c1d35a409eddc1f61e115e887c1e1)
2008-03-01Make sure we are still able to join Windows 2008.Günther Deschner1-2/+1
Guenther (This used to be commit aa9c0f587718f4d647e87b9662acbedba042b9cb)
2008-02-29libnetjoin: add fallback to level 24 samr setinfo so that libnet can join NT4.Günther Deschner1-0/+19
Guenther (This used to be commit bc2d3d51449831146a9faf6e809e7a91d174659c)
2008-02-29libnetjoin: Trying to avoid confusion between acct_flags, acb_info andGünther Deschner1-12/+14
access_desired. Guenther (This used to be commit 63894e5c93ef0663fc58bcc191777cd1aca7e21c)
2008-02-28libnetjoin: Merge in comments, debugs and missing code from original join code.Günther Deschner1-3/+117
Guenther (This used to be commit 09e6010159cb9c2a5d86861889b8c2a07bd39a8d)
2008-02-28Add some more error handling in libnetjoin.Günther Deschner1-0/+10
Guenther (This used to be commit 892b2bc0cf1692c5707d322d0eb711b8245a3a96)
2008-02-28Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.Günther Deschner1-4/+4
Guenther (This used to be commit b1a4b21f8c35dc23e5c986ebe44d3806055eb39b)
2008-02-28Store domain_is_ad info as early as possible in libnetjoin.Günther Deschner1-1/+16
Guenther (This used to be commit c4ba68aa94888eace393b91a669e22b27ffaba3e)
2008-02-28Check for mandatory domain name in libnetjoin/unjoin.Günther Deschner1-1/+8
Guenther (This used to be commit 95bdf2f23c195cad1b317995e362f153695e793a)
2008-02-28Delete affinity cache entries while unjoining with libnetunjoin.Günther Deschner1-2/+14
Guenther (This used to be commit 0315b8e53dca9a836d6bc2282fb1192f40545601)
2008-02-28Fill in machine account manipulation flags while unjoining in libnetunjoin.Günther Deschner1-0/+8
Guenther (This used to be commit 23ae67158e6506199318025e3dd5fd5c0b099548)
2008-02-28Add preliminary libnet_join_post_verify call to libnetjoin.Günther Deschner1-0/+131
Guenther (This used to be commit f0e319a18d86303aeb73c08841024c27c1b135cd)
2008-02-28Merge all connect ads calls into libnet_join_post_processing_ads().Günther Deschner1-21/+7
Guenther (This used to be commit be96baeffc60d05d8e297034e5253c8b75512ab2)
2008-02-28Use W_ERROR_NOT_OK_GOTO_DONE macro in libnetjoin.Günther Deschner1-19/+15
Guenther (This used to be commit fec230b28f456469bce051a2b26249d2026a48ea)
2008-02-12Collect all init_lsa_string varients in one place.Günther Deschner1-5/+0
Guenther (This used to be commit f4581e9f4482566fba9436d5ae058b8d840fa394)
2008-02-12Remove all callers of rpccli_samr_setuserinfo2 and replace withGünther Deschner1-24/+16
rpccli_samr_SetUserInfo (see the opcode mixup in rpc_samr.h). Guenther (This used to be commit bdc49185036060ebb9c727767dce52e4b01bd8b4)
2008-02-12Use everyGünther Deschner1-4/+7
(This used to be commit d9cec295bf55b3a7e16f548cc4bf64ce474b41e9)
2008-02-12Removing unused ACCT_-flags.Günther Deschner1-1/+2
Guenther (This used to be commit d1e5a5a7f9dfb5756398e99cf09a4712d2b42682)
2008-02-08Use rpccli_samr_LookupNames() in libnetjoin.Günther Deschner1-20/+24
Guenther (This used to be commit e62bfd2deea81f188cd4b5274218c3df64782aa7)
2008-02-08Use rpccli_lsa_QueryInfoPolicy() in libnet_join.Günther Deschner1-4/+7
Guenther (This used to be commit 28ef55cbf1662dfe6b64a837ade830f5c864b4b9)
2008-02-08Use rpccli_lsa_QueryInfoPolicy2 in libnet join.Günther Deschner1-8/+8
Guenther (This used to be commit ddc2fc16bf18fe3ab8a0fc0021826253d5f4ed32)
2008-02-04Use rpccli_samr_Connect2() all over the place.Günther Deschner1-4/+8
Guenther (This used to be commit bdf8d562621e1a09bf83e2009dec24966e7fdf22)
2008-02-01Use rpccli_samr_CreateUser2() all over the place.Günther Deschner1-6/+18
Guenther (This used to be commit 701af69118c9634c7dc0d5c10152ce776787694d)
2008-02-01Use rpccli_samr_OpenUser() all over the place.Günther Deschner1-6/+10
Guenther (This used to be commit da90eb7653554d242da83ed98adae35ced3a2938)
2008-02-01Use rpccli_samr_OpenDomain() all over the place.Günther Deschner1-8/+10
Guenther (This used to be commit e4e9d72724d547e1405b2ed4cec509d50ec88c8d)
2008-01-31Remove rpccli_samr_close and use pidl generated function instead.Günther Deschner1-6/+6
Guenther (This used to be commit 64f0889401855ab76953bfae5db4fe4df19ad8a5)
2008-01-29Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).Günther Deschner1-2/+0
Guenther (This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)
2008-01-25Trying to avoid defining new SAMR acct creation flags when we already have ↵Günther Deschner1-4/+6
them with different names. Matt, Jeremy, please check. Guenther (This used to be commit d4a9e46edf7336f673c001c559af96eb0ecf9f6f)
2008-01-23Forward ported version of Matt Geddes <musicalcarrion@gmail.com>Jeremy Allison1-1/+6
patch for adding acct_flags to rpccli_samr_create_dom_user(). Jerry please test. Jeremy. (This used to be commit 7d94f97947b7edfcf3ec52f0125e4593d6d54c05)
2008-01-16Use lp_config_backend_is_registry() instead of lp_include_registry_globals().Michael Adam1-2/+2
Michael (This used to be commit c5a7d421c512a6221b0300549d7b5de0368d252e)
2008-01-16Autofetch domain_sid while unjoining in libnetjoin.Günther Deschner1-0/+11
Guenther (This used to be commit 622109895c56ed7cc02dac006f02cac89424b569)
2008-01-16Nicen some error strings in libnetjoin.Günther Deschner1-7/+10
Guenther (This used to be commit 05cf1413cc92e15bbe7ba0477df282ad31e40412)
2008-01-16Avoid use of NDR_PRINT_X_DEBUG (that debugs with level 0) in libnetjoin.Günther Deschner1-4/+37
Guenther (This used to be commit 357a393b106fe88629bf5f6c634d16c0fc47cee9)
2008-01-15Use autogenerated debugging functions in libnetjoin when requested.Günther Deschner1-0/+15
Guenther (This used to be commit 08c1720509dffa2886ed057e2d14907699122f3c)
2008-01-15Remove unrequired TALLOC_FREE.Günther Deschner1-1/+0
Guenther (This used to be commit 15d0e574386e39a4d2fa61cd268b48dfa5c84dcb)
2008-01-15No need to re-establish AD connection all the time.Günther Deschner1-8/+0
Guenther (This used to be commit f21871c6d60e02ed53f060abbbfb2ef656cdc311)
2008-01-15Use dsgetdcname() to find a dc when unjoining in libnetjoin.Günther Deschner1-0/+23
Guenther (This used to be commit 1a5b72daa36073cc0604211248d869bf0d7546c6)
2008-01-15Re-arrange pre- and postprocessing code in libnetjoin.Günther Deschner1-19/+84
Guenther (This used to be commit 99e3e4b0dd0b0755189c1c740f2975bc75a0e28d)
2008-01-13Make use of the new libnet_conf_delete_global_parameter() function.Michael Adam1-1/+1
Michael (This used to be commit aed01fd28c8e896e993239cbe9b2681132ddf980)
2008-01-13Introduce a libnet_conf context created by libnet_conf_open().Michael Adam1-17/+41
The libnet_conf_ctx stores the information necessary to interoperate with the configuration. It is created by calling libnet_conf_open() and destroyed by calling libnet_conf_close(). The context is passed to all the libnet_conf functions. It currently stores the token to access the registry. Later, it could store more data, e.g. the server to connect to, credentials, and so on. For support of other backends than registry or support of remote configuration, only the open function will have to be changed. In net_conf, the calls to the actual net_conf functions is wrapped into a function that calls libnet_conf_open()/_close(). Thus an individual variant of net_conf_runfunction2() and functable2 is used to cope with functions being called by the wrapper with the additional libnet_conf_ctx argument. Michael (This used to be commit c2a9346faa26e79af5948197a1b322e545f0ed09)