summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/joindomain.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-12-21Remove doubled cli_set_timeout calls from libnetapi.Günther Deschner1-4/+0
Guenther (This used to be commit acc5d8e784b706001457ceeeb9bd4961a13d57d2)
2007-12-21Keep libnetapi_NetX calls static for now.Günther Deschner1-4/+4
Guenther (This used to be commit c255654c68923aca3e258906e49be82d719d5ccd)
2007-12-21Split out local and remote paths for NetGetJoinInformation.Günther Deschner1-40/+52
Guenther (This used to be commit d1e4f9dd5cde79f915e3e0f652621d966aa850e8)
2007-12-21Add support for remote and local unjoining in libnetapi.Günther Deschner1-5/+89
Guenther (This used to be commit 74048fe7cfbd05994d533bea4a477d6ca93449d9)
2007-12-21Remove unrequired TALLOC_CTX from libnetapi_NetJoinDomain & friends.Günther Deschner1-34/+5
Guenther (This used to be commit 96ebdca45b998da7e6137973dea717bf3ac76328)
2007-12-21Fix NetJoinDomainLocal.Günther Deschner1-4/+1
Guenther (This used to be commit 24605c9175fb313c9c888783817da755cd8ce594)
2007-12-21Use DsGetDcName in local libnetapi join to find a dc.Günther Deschner1-14/+20
Guenther (This used to be commit fbc60c1648ff8b1fa0ae33c09237e41232f9769c)
2007-12-21Move NetJoinDomain and friends to NET_API_STATUS and the static libnetapi_ctx.Günther Deschner1-20/+106
Guenther (This used to be commit e640c3a4a7695613e9e619516befbaf3d44ecb10)
2007-12-21Missed on instance of external creds.Günther Deschner1-2/+4
Guenther (This used to be commit 65d50f518766ab0a8115c2599d190e642eb00754)
2007-12-21Getting rid of external credentials in libnetapi.Günther Deschner1-8/+8
Guenther (This used to be commit c10481dba01a084b0f9c4265f3408a0ec9a8b646)
2007-12-21Fill in local branch of NetGetJoinInformation().Günther Deschner1-0/+26
Guenther (This used to be commit 46db8754511f915c296771e08e822ba810f804d5)
2007-12-21Fill in NetJoinDomainLocal().Günther Deschner1-1/+35
Guenther (This used to be commit 4896f22bb50ea9ae0c4807ed9b2dd4283c254364)
2007-12-21Split NetJoinDomain() into NetJoinDomainRemote() and the unsupportedGünther Deschner1-23/+73
NetJoinDomainLocal(). Guenther (This used to be commit d2f21ce6727ec9e4df67989db07b48470d0790a4)
2007-12-21Add NetGetJoinInformation().Günther Deschner1-0/+53
Guenther (This used to be commit d341d251d6e22e9cc1c4596038fd5fe5c7c6c174)
2007-12-21Fix a missing prototype warningVolker Lendecke1-0/+1
(This used to be commit 93e5de23e7109432f554745b18c6d630a39f9c2b)