Michael Adam
1ee6d3e1ee
Introduce a libnet_conf context created by libnet_conf_open().
...
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)
2008-01-13 02:14:34 +01:00
Günther Deschner
c79ce2ffa3
As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
...
Guenther
(This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-11 15:32:20 +01:00
Günther Deschner
efcf285e27
Fix libnetapi error string callers.
...
Guenther
(This used to be commit 1ad7a0a361edfa5ac738f011db1d6a9db256ac2c)
2008-01-11 15:28:24 +01:00
Günther Deschner
7a87256cd1
Include some basic headers in netapi.h.
...
Guenther
(This used to be commit 23b92a6fa57858c8a23c737a9cd00c076ef5dadd)
2008-01-11 15:10:15 +01:00
Günther Deschner
4eed7883bb
Refactor libnetapi error string functions a bit.
...
Guenther
(This used to be commit 3b450a8bcc97b6d03c4b7b9373a3a382c0fcea30)
2008-01-11 15:09:54 +01:00
Günther Deschner
67f2afe3c4
Correctly free buffers in netdomjoin-gui.
...
Guenther
(This used to be commit 04d78d4d9a8cffe44c927036038aef1d6d6b44b2)
2008-01-08 11:59:01 +01:00
Günther Deschner
200bba3ad6
Make name_buffer in NetGetJoinInformation() talloced.
...
Guenther
(This used to be commit 421905fb608df6736944ac21ac67abee24991521)
2008-01-08 11:59:01 +01:00
Günther Deschner
a01dc30db7
Add NetApiBufferFree() to libnetapi.
...
Guenther
(This used to be commit c49196954d38f0c2851abbfe25086cd6fe660a2e)
2008-01-08 11:59:01 +01:00
Günther Deschner
ab216a1b4e
Fix crash bug when strequal is used too late in libnetapi_free.
...
Guenther
(This used to be commit ba2b8a310e1d6f78116350e24c17ae4db08b9bed)
2008-01-08 11:59:01 +01:00
Günther Deschner
e3ea1e1391
Enable talloc reporting in libnetapi if DEVELOPER compiled.
...
Guenther
(This used to be commit 01e9151546a83e0c772a144efa85437ca0c8a307)
2008-01-07 22:57:30 +01:00
Günther Deschner
74fc0bf9e5
In libnetapi example, use libnetapi_get_error_string().
...
Guenther
(This used to be commit b624db92d61809a44881abbdd09dfa3a74ff7a88)
2008-01-07 20:13:40 +01:00
Günther Deschner
d6659f8ac8
In the local path of NetJoinDomain, try to get error string from libnetjoin.
...
Guenther
(This used to be commit 0f0f0e13022da584b77e850fec2cef6169e1ac28)
2008-01-07 20:13:26 +01:00
Günther Deschner
751fc874be
Add libnetapi_set_error_string and libnetapi_get_error_string.
...
Guenther
(This used to be commit f8806bad8134d544229c426f58bee143ba752cf8)
2008-01-07 20:13:18 +01:00
Günther Deschner
1b3520db88
Add krb5 cc env to libnetapi_ctx.
...
Guenther
(This used to be commit df2b078fa1658bdbff1280f7fe0b062d9eabd60c)
2008-01-07 20:13:02 +01:00
Günther Deschner
1fba8c8019
Let libnetapi use it's own krb5 cred cache in memory if necessary.
...
Guenther
(This used to be commit 863fb30038e384585502f0154a742481594b99d0)
2008-01-07 20:12:38 +01:00
Günther Deschner
528d253cc8
Rearrange order of libnet join context init.
...
Guenther
(This used to be commit 89669c66f27fb47c9769d1058e29bff83f862752)
2008-01-07 19:38:35 +01:00
Günther Deschner
0b92d8bc79
Free libnet_JoinCtx after joining.
...
Guenther
(This used to be commit 5abae9ef15fa9884c5c4a0e256274f70f6ecd779)
2008-01-07 19:38:22 +01:00
Günther Deschner
cc1982ab1c
Close registry in libnetapi_free().
...
Guenther
(This used to be commit e7258a4408e40686ff090d0f8e120ce78acbd097)
2008-01-07 19:38:10 +01:00
Günther Deschner
fa1e5e95d5
Add NET_API_STATUS_SUCCESS define.
...
Guenther
(This used to be commit a72ad63163a8c642ea762087a739e6d63c37647a)
2008-01-07 19:37:54 +01:00
Günther Deschner
be7df54c39
Fix two memleaks in libnetapi.
...
Guenther
(This used to be commit d73bde99e8518607bb78b5625ce5fb1991d8e402)
2008-01-07 12:48:21 +01:00
Günther Deschner
e6c3ac59c5
Failure while unjoining a domain is non-critical.
...
Just continue joining to the workgroup in that case.
Guenther
(This used to be commit bf9ce2a928e3136d3bfe368f75d5b99273c5b04f)
2008-01-07 12:48:21 +01:00
Günther Deschner
395c366237
Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.
...
Guenther
(This used to be commit fe75e5ccdfc2609380367e59215637b0de1ef241)
2008-01-04 23:03:55 +01:00
Günther Deschner
28ef4878d9
Rename server_name to dc_name in libnet join structures.
...
Guenther
(This used to be commit ff5e15b1ba0d5c39ceef9f9995c107e510162564)
2008-01-04 17:43:15 +01:00
Günther Deschner
0399df22f0
In libnet_join finally separate the admin from the machine pwd entirely.
...
Guenther
(This used to be commit d88bb94f0ef00ddbb48498797bd11448e0d74645)
2008-01-04 17:43:02 +01:00
Günther Deschner
f78c318eb0
Add debug switch to netdomjoin.
...
Guenther
(This used to be commit 2b221708c07967bccd68e8c7983791b4628405bb)
2008-01-04 15:21:41 +01:00
Günther Deschner
564a54aa16
Minor cosmetic cleanup for netdomjoin-gui.
...
Guenther
(This used to be commit 02e3887f3962b469c965110b6141a6655f2347af)
2008-01-04 15:21:35 +01:00
Günther Deschner
cf6e59de2b
Fix some error strings in netdomjoin-gui.
...
Guenther
(This used to be commit aaea8f1ed744e9662f92a3840d86ad1aff943d18)
2008-01-04 11:55:08 +01:00
Günther Deschner
be88a67388
Minor libnetapi join cosmetic cleanup.
...
Guenther
(This used to be commit 4deef80bed374af5032c0f3081d2ee3c70be99df)
2008-01-03 18:15:22 +01:00
Michael Adam
5655ae7a24
Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
...
Now all functions are converted to the consistent naming scheme.
Michael
(This used to be commit a559533c0c8a80f3f4078bbc2675de395359485f)
2008-01-03 14:17:49 +01:00
Günther Deschner
6afaafe083
Let DsGetDCName figure out whether domain_name is a flat_name when unjoining.
...
Guenther
(This used to be commit 75165ba4e7acafaca42f6afd1fb8b56e00bcbed7)
2008-01-03 13:41:36 +01:00
Volker Lendecke
921d8782cc
Fix the build
...
(This used to be commit 72dc71710813ea9f1d8864c4401fef25a25577bd)
2007-12-25 11:38:26 +01:00
Günther Deschner
86dfb55ffb
Correct netapi header filename. Thanks Jeremy.
...
Guenther
(This used to be commit f192737ec8140aa6570bfb49a165b31890d63b16)
2007-12-22 00:03:15 +01:00
Günther Deschner
657afffaae
Move gtk app to the correct location. Thanks obnox!
...
Guenther
(This used to be commit 740a2b080db56d504c4edd58bf41d72edb3d32ee)
2007-12-21 17:29:15 +01:00
Günther Deschner
77a2e13cb1
Move libnetapi examples into subdirs.
...
Guenther
(This used to be commit 0c3de6f3458419e57daaa71f1dad679897388f5a)
2007-12-21 17:05:55 +01:00
Günther Deschner
13d159bc2d
Add netdomjoin-gui (my first gui application), another libnetapi user.
...
Guenther
(This used to be commit cf57ade5ec4a808eccb19a7723d753742fb71ca9)
2007-12-21 16:36:06 +01:00
Günther Deschner
f3607f85b6
Add netdomjoin cmd line tool (another libnetapi example).
...
Guenther
(This used to be commit c502686f09713a7cf3786c254be6515a7aa23555)
2007-12-21 16:08:13 +01:00
Günther Deschner
27a58bd50c
Add getdc.c, a libnetapi example (incl. Makefile).
...
Guenther
(This used to be commit faedc78fc78527ee3bf05e1177ea43653aea67b2)
2007-12-21 16:02:35 +01:00
Günther Deschner
eddd190921
Add basic remote NetGetDCName and NetGetAnyDCName versions to libnetapi.
...
Guenther
(This used to be commit 5bc49546a32abb4524133b9f2916cdd51d4eb462)
2007-12-21 15:51:00 +01:00
Günther Deschner
d230cd8dd5
Make libnetapi_errstr use our NTSTATUS and WERROR error string macros.
...
Guenther
(This used to be commit e46aa35d432e930835206b9ce7583f46933015d8)
2007-12-21 15:30:29 +01:00
Günther Deschner
9518d738b1
Add error string for access denied in libnetapi.
...
Guenther
(This used to be commit 4df868e3c366958c64ed8445489c8d1e8a28e50b)
2007-12-21 15:29:11 +01:00
Günther Deschner
1a30bdb506
Remove doubled cli_set_timeout calls from libnetapi.
...
Guenther
(This used to be commit acc5d8e784b706001457ceeeb9bd4961a13d57d2)
2007-12-21 15:29:11 +01:00
Günther Deschner
f2fe172454
Keep libnetapi_NetX calls static for now.
...
Guenther
(This used to be commit c255654c68923aca3e258906e49be82d719d5ccd)
2007-12-21 15:29:11 +01:00
Günther Deschner
5479c50c37
Merge all headers into libnetapi.h.
...
Guenther
(This used to be commit a2c5beda2ec98dea8951fb3a37774f5f325410ef)
2007-12-21 15:29:11 +01:00
Günther Deschner
991112eda7
Implement NetServerSetInfo level 1005 in local mode with smbconf registry.
...
Guenther
(This used to be commit 15c2bc15f20a677c3c94895150e396275de6ac9b)
2007-12-21 15:29:11 +01:00
Günther Deschner
721d36df83
Add NetServerGetInfo and NetServerSetInfo (for level 1005).
...
Guenther
(This used to be commit 1cad549f54563c3a9787624ba7a56b54107ebd57)
2007-12-21 15:29:11 +01:00
Günther Deschner
2bed9564db
Split out local and remote paths for NetGetJoinInformation.
...
Guenther
(This used to be commit d1e4f9dd5cde79f915e3e0f652621d966aa850e8)
2007-12-21 15:29:11 +01:00
Günther Deschner
af08d8be30
Add libnetapi_errstr().
...
Guenther
(This used to be commit 465e61a3599a277366ada6ecda3a1e6ddb1f2490)
2007-12-21 15:29:11 +01:00
Günther Deschner
75276ac2e3
Add support for remote and local unjoining in libnetapi.
...
Guenther
(This used to be commit 74048fe7cfbd05994d533bea4a477d6ca93449d9)
2007-12-21 15:29:11 +01:00
Günther Deschner
8f7723fc28
Remove unrequired TALLOC_CTX from libnetapi_NetJoinDomain & friends.
...
Guenther
(This used to be commit 96ebdca45b998da7e6137973dea717bf3ac76328)
2007-12-21 15:29:11 +01:00
Günther Deschner
14652eab18
Fix NetJoinDomainLocal.
...
Guenther
(This used to be commit 24605c9175fb313c9c888783817da755cd8ce594)
2007-12-21 15:29:11 +01:00