summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/joindomain.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-25s3-netapi: fix memoryleak while not using talloc_tos() in ↵Günther Deschner1-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
2011-03-24s3-netapi: use cli_get_session_key() in netapi.Günther Deschner1-4/+36
Guenther
2011-03-19s3-build: use HAVE_ADS define in some more places.Günther Deschner1-1/+1
Guenther
2011-02-28s3-rpc_client: Move client pipe functions to own header.Andreas Schneider1-0/+1
2011-01-12s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X ↵Günther Deschner1-0/+4
functions. Guenther
2011-01-11s3-wkssvc: prefer dcerpc_wkssvc_X functions.Günther Deschner1-6/+21
Guenther
2010-10-02s3: Attempt to fix bug 7665Volker Lendecke1-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.
2010-09-23s3-dsgetdcname: always pass in messaging context.Günther Deschner1-3/+15
Volker, please check. Guenther
2010-08-06s3-netlogon: remove global include of netlogon.h.Günther Deschner1-1/+1
This reduces precompiled headers by another 4 MB and also slightly speeds up the build. Guenther
2010-08-05s3-secrets: only include secrets.h when needed.Günther Deschner1-0/+1
Guenther
2010-08-05s3: avoid global include of ads.h.Günther Deschner1-1/+1
Guenther
2010-07-13s3-libnet: better separate headers.Günther Deschner1-1/+2
Guenther
2009-11-26s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner1-0/+1
samba. Guenther
2009-11-08Revert "s3: Make libnetapi_open_pipe take strings instead of a ↵Volker Lendecke1-5/+5
ndr_interface_table" This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.
2009-11-08s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_tableVolker Lendecke1-5/+5
2009-06-19Don't require "Modify property" perms to unjoin bug #6481)Jim McDonough1-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.
2009-04-14More work to adapt to merged libcli/auth function prototypesAndrew Bartlett1-0/+1
2009-01-18libnetapi_open_pipe does not need to return cli_stateVolker Lendecke1-24/+10
The user session key is also available in rpccli->auth->user_session_key Guenther, please check! Thanks, Volker
2008-09-05netapi: implement NetRenameMachineInDomain_r.Günther Deschner1-1/+35
Guenther (This used to be commit 39a42380ca3fac92eb27bded90ab06f7760937b9)
2008-09-05netapi: add skeleton for NetRenameMachineInDomain.Günther Deschner1-0/+18
Guenther (This used to be commit 03a7f7f33370d65493a81ccead2038ee3ab291d0)
2008-09-05netapi: fix NetGetJoinableOUs_r: do not tear down connection.Günther Deschner1-4/+0
Guenther (This used to be commit 14c2688f2d37105ad129d26d13930177fe5c585f)
2008-08-29netapi: fix NetGetJoinableOUs_l.Günther Deschner1-1/+1
It needs to try the dns domain name for the ads connection. Guenther (This used to be commit 918eae8221bb8c24084cad96556e4d8c3685e314)
2008-08-14netapi: make libnetapi_open_ipc_connection static.Günther Deschner1-24/+12
Guenther (cherry picked from commit 0259914f8ff04514a8395d8e1af61aadd50c5efb) (This used to be commit 7edc671cc1007ae216e7efdbcdb9cfa1e547dca5)
2008-07-21Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idxVolker Lendecke1-4/+8
(This used to be commit 726e56c72fdb685ab5eddefd2fd8b043dc38d6ad)
2008-06-24libads: use ads_connect_user_creds in some places.Günther Deschner1-1/+1
Guenther (This used to be commit ebf31203e7cf22e32b986c536279688b17a65d22)
2008-05-09dsgetdcname: use existing messaging_context if possible.Günther Deschner1-3/+3
Guenther (This used to be commit 7889516a384c155a9045aad4409c041fddd0d98d)
2008-05-09Use strip_hostname after dsgetdcname/getdcname calls.Günther Deschner1-5/+12
Guenther (This used to be commit 82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62)
2008-04-29netapi: fix returned name buffer in NetGetJoinInformation_r().Günther Deschner1-1/+5
Guenther (This used to be commit 0e8e05d556a7f84e500cca3fa858f9b4a9522a5f)
2008-04-10Use libnetapi_open_pipe in netapi functions.Günther Deschner1-16/+8
Guenther (This used to be commit 5804d8b112e1da022988c635284eb4799974d4c7)
2008-04-10Use libnetapi_open_ipc_connection in libnetapi.Günther Deschner1-55/+11
Guenther (This used to be commit d9f19fc61586d606393368799dee9757c169d602)
2008-04-10Split out private headers in libnetapi.Günther Deschner1-0/+1
Guenther (This used to be commit dd6251d51472a96bfc5ba3d62ea788c8924d4c6b)
2008-04-08Try to use kerberos in libnetapi.Günther Deschner1-4/+12
Guenther (This used to be commit 9cfce2229508c2145c3527074ac76520544e5d25)
2008-04-08Restructure inner workings of libnetapi a bit.Günther Deschner1-367/+111
Guenther (This used to be commit a4e3bc2bade8bf74696e1c6ced74da563ff2df7b)
2008-04-02Make sure to hand down the domain name in libnetapi NetUnjoinDomain.Günther Deschner1-7/+11
Guenther (This used to be commit 0058ab30de943f134792e3d66051206086987110)
2008-03-07Enable libnetjoin debugging for now but avoid printing passwords.Günther Deschner1-0/+1
The gen_ndr needs proper fixing still. Guenther (This used to be commit 966d7244d7765d285a7026b97e6093fd1f8d83ce)
2008-02-28Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.Günther Deschner1-6/+6
Guenther (This used to be commit b1a4b21f8c35dc23e5c986ebe44d3806055eb39b)
2008-01-29Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).Günther Deschner1-3/+3
Guenther (This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)
2008-01-18Fix the build w/o ADS.Günther Deschner1-0/+4
Guenther (This used to be commit 645f2376d40fabdc787902ac7506ad7234616619)
2008-01-18Add NetGetJoinableOUs() to libnetapi (incl. example).Günther Deschner1-0/+192
Guenther (This used to be commit 8858e403e1940c362d307b4d4125f977abb0b96a)
2008-01-18Cosmetics and error string reporting for libnetapi.Günther Deschner1-6/+51
Guenther (This used to be commit 4ca33928512bd71268bafd41d2b608e814a7295f)
2008-01-11As long as DsGetDcName is not part of libnetapi, lowercase the fn name.Günther Deschner1-2/+2
Guenther (This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-08Make name_buffer in NetGetJoinInformation() talloced.Günther Deschner1-2/+2
Guenther (This used to be commit 421905fb608df6736944ac21ac67abee24991521)
2008-01-07In the local path of NetJoinDomain, try to get error string from libnetjoin.Günther Deschner1-0/+3
Guenther (This used to be commit 0f0f0e13022da584b77e850fec2cef6169e1ac28)
2008-01-07Rearrange order of libnet join context init.Günther Deschner1-3/+3
Guenther (This used to be commit 89669c66f27fb47c9769d1058e29bff83f862752)
2008-01-07Free libnet_JoinCtx after joining.Günther Deschner1-1/+4
Guenther (This used to be commit 5abae9ef15fa9884c5c4a0e256274f70f6ecd779)
2008-01-04Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.Günther Deschner1-8/+4
Guenther (This used to be commit fe75e5ccdfc2609380367e59215637b0de1ef241)
2008-01-04Rename server_name to dc_name in libnet join structures.Günther Deschner1-6/+8
Guenther (This used to be commit ff5e15b1ba0d5c39ceef9f9995c107e510162564)
2008-01-04In libnet_join finally separate the admin from the machine pwd entirely.Günther Deschner1-5/+5
Guenther (This used to be commit d88bb94f0ef00ddbb48498797bd11448e0d74645)
2008-01-03Minor libnetapi join cosmetic cleanup.Günther Deschner1-3/+3
Guenther (This used to be commit 4deef80bed374af5032c0f3081d2ee3c70be99df)
2008-01-03Let DsGetDCName figure out whether domain_name is a flat_name when unjoining.Günther Deschner1-1/+0
Guenther (This used to be commit 75165ba4e7acafaca42f6afd1fb8b56e00bcbed7)