summaryrefslogtreecommitdiffstats
path: root/source3/lib/netapi/joindomain.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:lib/netapi: fix some incompatible pointer type warnings in ↵Stefan Metzmacher2014-04-021-3/+5
| | | | | | | NetGetJoinableOUs_l() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3-libnetapi: pass down ndr_interface_table to libnetapi_open_pipe().Günther Deschner2013-08-051-5/+5
| | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-netapi: fix memoryleak while not using talloc_tos() in ↵Günther Deschner2011-03-251-4/+4
| | | | | | | | | | | cli_get_session_key() usage. Thanks Volker! Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Mar 25 18:21:18 CET 2011 on sn-devel-104
* s3-netapi: use cli_get_session_key() in netapi.Günther Deschner2011-03-241-4/+36
| | | | Guenther
* s3-build: use HAVE_ADS define in some more places.Günther Deschner2011-03-191-1/+1
| | | | Guenther
* s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-281-0/+1
|
* s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X ↵Günther Deschner2011-01-121-0/+4
| | | | | | functions. Guenther
* s3-wkssvc: prefer dcerpc_wkssvc_X functions.Günther Deschner2011-01-111-6/+21
| | | | Guenther
* s3: Attempt to fix bug 7665Volker Lendecke2010-10-021-5/+5
| | | | | | | Quite a few of our internal routines put stuff on talloc_tos() these days. In top-level netapi routines, properly allocate a stackframe and clean it again. Also, don't leak memory in the rpccli_ callers onto the libnetapi context.
* s3-dsgetdcname: always pass in messaging context.Günther Deschner2010-09-231-3/+15
| | | | | | Volker, please check. Guenther
* s3-netlogon: remove global include of netlogon.h.Günther Deschner2010-08-061-1/+1
| | | | | | | This reduces precompiled headers by another 4 MB and also slightly speeds up the build. Guenther
* s3-secrets: only include secrets.h when needed.Günther Deschner2010-08-051-0/+1
| | | | Guenther
* s3: avoid global include of ads.h.Günther Deschner2010-08-051-1/+1
| | | | Guenther
* s3-libnet: better separate headers.Günther Deschner2010-07-131-1/+2
| | | | Guenther
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-261-0/+1
| | | | | | samba. Guenther
* Revert "s3: Make libnetapi_open_pipe take strings instead of a ↵Volker Lendecke2009-11-081-5/+5
| | | | | | ndr_interface_table" This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.
* s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_tableVolker Lendecke2009-11-081-5/+5
|
* Don't require "Modify property" perms to unjoin bug #6481)Jim McDonough2009-06-191-0/+1
| | | | | | | | | | | | | | | | | | "net ads leave" stopped working when "modify properties" permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete). Libnetapi should not delete machine accounts, as this does not happen on win32. The WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag really means "disable" (both in practice and docs). However, to keep the functionality in "net ads leave", we will still try to do the delete. If this fails, we try to do the disable. Additionally, it is possible in windows to not disable or delete the account, but just tell the local machine that it is no longer in the account. libnet can now do this as well.
* More work to adapt to merged libcli/auth function prototypesAndrew Bartlett2009-04-141-0/+1
|
* libnetapi_open_pipe does not need to return cli_stateVolker Lendecke2009-01-181-24/+10
| | | | | | | | | | The user session key is also available in rpccli->auth->user_session_key Guenther, please check! Thanks, Volker
* netapi: implement NetRenameMachineInDomain_r.Günther Deschner2008-09-051-1/+35
| | | | | Guenther (This used to be commit 39a42380ca3fac92eb27bded90ab06f7760937b9)
* netapi: add skeleton for NetRenameMachineInDomain.Günther Deschner2008-09-051-0/+18
| | | | | Guenther (This used to be commit 03a7f7f33370d65493a81ccead2038ee3ab291d0)
* netapi: fix NetGetJoinableOUs_r: do not tear down connection.Günther Deschner2008-09-051-4/+0
| | | | | Guenther (This used to be commit 14c2688f2d37105ad129d26d13930177fe5c585f)
* netapi: fix NetGetJoinableOUs_l.Günther Deschner2008-08-291-1/+1
| | | | | | | | It needs to try the dns domain name for the ads connection. Guenther (This used to be commit 918eae8221bb8c24084cad96556e4d8c3685e314)
* netapi: make libnetapi_open_ipc_connection static.Günther Deschner2008-08-141-24/+12
| | | | | | Guenther (cherry picked from commit 0259914f8ff04514a8395d8e1af61aadd50c5efb) (This used to be commit 7edc671cc1007ae216e7efdbcdb9cfa1e547dca5)
* Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idxVolker Lendecke2008-07-211-4/+8
| | | | (This used to be commit 726e56c72fdb685ab5eddefd2fd8b043dc38d6ad)
* libads: use ads_connect_user_creds in some places.Günther Deschner2008-06-241-1/+1
| | | | | Guenther (This used to be commit ebf31203e7cf22e32b986c536279688b17a65d22)
* dsgetdcname: use existing messaging_context if possible.Günther Deschner2008-05-091-3/+3
| | | | | Guenther (This used to be commit 7889516a384c155a9045aad4409c041fddd0d98d)
* Use strip_hostname after dsgetdcname/getdcname calls.Günther Deschner2008-05-091-5/+12
| | | | | Guenther (This used to be commit 82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62)
* netapi: fix returned name buffer in NetGetJoinInformation_r().Günther Deschner2008-04-291-1/+5
| | | | | Guenther (This used to be commit 0e8e05d556a7f84e500cca3fa858f9b4a9522a5f)
* Use libnetapi_open_pipe in netapi functions.Günther Deschner2008-04-101-16/+8
| | | | | Guenther (This used to be commit 5804d8b112e1da022988c635284eb4799974d4c7)
* Use libnetapi_open_ipc_connection in libnetapi.Günther Deschner2008-04-101-55/+11
| | | | | Guenther (This used to be commit d9f19fc61586d606393368799dee9757c169d602)
* Split out private headers in libnetapi.Günther Deschner2008-04-101-0/+1
| | | | | Guenther (This used to be commit dd6251d51472a96bfc5ba3d62ea788c8924d4c6b)
* Try to use kerberos in libnetapi.Günther Deschner2008-04-081-4/+12
| | | | | Guenther (This used to be commit 9cfce2229508c2145c3527074ac76520544e5d25)
* Restructure inner workings of libnetapi a bit.Günther Deschner2008-04-081-367/+111
| | | | | Guenther (This used to be commit a4e3bc2bade8bf74696e1c6ced74da563ff2df7b)
* Make sure to hand down the domain name in libnetapi NetUnjoinDomain.Günther Deschner2008-04-021-7/+11
| | | | | Guenther (This used to be commit 0058ab30de943f134792e3d66051206086987110)
* Enable libnetjoin debugging for now but avoid printing passwords.Günther Deschner2008-03-071-0/+1
| | | | | | | The gen_ndr needs proper fixing still. Guenther (This used to be commit 966d7244d7765d285a7026b97e6093fd1f8d83ce)
* Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.Günther Deschner2008-02-281-6/+6
| | | | | Guenther (This used to be commit b1a4b21f8c35dc23e5c986ebe44d3806055eb39b)
* Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).Günther Deschner2008-01-291-3/+3
| | | | | Guenther (This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)
* Fix the build w/o ADS.Günther Deschner2008-01-181-0/+4
| | | | | Guenther (This used to be commit 645f2376d40fabdc787902ac7506ad7234616619)
* Add NetGetJoinableOUs() to libnetapi (incl. example).Günther Deschner2008-01-181-0/+192
| | | | | Guenther (This used to be commit 8858e403e1940c362d307b4d4125f977abb0b96a)
* Cosmetics and error string reporting for libnetapi.Günther Deschner2008-01-181-6/+51
| | | | | Guenther (This used to be commit 4ca33928512bd71268bafd41d2b608e814a7295f)
* As long as DsGetDcName is not part of libnetapi, lowercase the fn name.Günther Deschner2008-01-111-2/+2
| | | | | Guenther (This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
* Make name_buffer in NetGetJoinInformation() talloced.Günther Deschner2008-01-081-2/+2
| | | | | Guenther (This used to be commit 421905fb608df6736944ac21ac67abee24991521)
* In the local path of NetJoinDomain, try to get error string from libnetjoin.Günther Deschner2008-01-071-0/+3
| | | | | Guenther (This used to be commit 0f0f0e13022da584b77e850fec2cef6169e1ac28)
* Rearrange order of libnet join context init.Günther Deschner2008-01-071-3/+3
| | | | | Guenther (This used to be commit 89669c66f27fb47c9769d1058e29bff83f862752)
* Free libnet_JoinCtx after joining.Günther Deschner2008-01-071-1/+4
| | | | | Guenther (This used to be commit 5abae9ef15fa9884c5c4a0e256274f70f6ecd779)
* Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.Günther Deschner2008-01-041-8/+4
| | | | | Guenther (This used to be commit fe75e5ccdfc2609380367e59215637b0de1ef241)
* Rename server_name to dc_name in libnet join structures.Günther Deschner2008-01-041-6/+8
| | | | | Guenther (This used to be commit ff5e15b1ba0d5c39ceef9f9995c107e510162564)
* In libnet_join finally separate the admin from the machine pwd entirely.Günther Deschner2008-01-041-5/+5
| | | | | Guenther (This used to be commit d88bb94f0ef00ddbb48498797bd11448e0d74645)