Michael Adam
c2a9346faa
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
2008-01-13 02:14:34 +01:00
Günther Deschner
19a980f520
As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
...
Guenther
2008-01-11 15:32:20 +01:00
Günther Deschner
1ad7a0a361
Fix libnetapi error string callers.
...
Guenther
2008-01-11 15:28:24 +01:00
Günther Deschner
23b92a6fa5
Include some basic headers in netapi.h.
...
Guenther
2008-01-11 15:10:15 +01:00
Günther Deschner
3b450a8bcc
Refactor libnetapi error string functions a bit.
...
Guenther
2008-01-11 15:09:54 +01:00
Günther Deschner
04d78d4d9a
Correctly free buffers in netdomjoin-gui.
...
Guenther
2008-01-08 11:59:01 +01:00
Günther Deschner
421905fb60
Make name_buffer in NetGetJoinInformation() talloced.
...
Guenther
2008-01-08 11:59:01 +01:00
Günther Deschner
c49196954d
Add NetApiBufferFree() to libnetapi.
...
Guenther
2008-01-08 11:59:01 +01:00
Günther Deschner
ba2b8a310e
Fix crash bug when strequal is used too late in libnetapi_free.
...
Guenther
2008-01-08 11:59:01 +01:00
Günther Deschner
01e9151546
Enable talloc reporting in libnetapi if DEVELOPER compiled.
...
Guenther
2008-01-07 22:57:30 +01:00
Günther Deschner
b624db92d6
In libnetapi example, use libnetapi_get_error_string().
...
Guenther
2008-01-07 20:13:40 +01:00
Günther Deschner
0f0f0e1302
In the local path of NetJoinDomain, try to get error string from libnetjoin.
...
Guenther
2008-01-07 20:13:26 +01:00
Günther Deschner
f8806bad81
Add libnetapi_set_error_string and libnetapi_get_error_string.
...
Guenther
2008-01-07 20:13:18 +01:00
Günther Deschner
df2b078fa1
Add krb5 cc env to libnetapi_ctx.
...
Guenther
2008-01-07 20:13:02 +01:00
Günther Deschner
863fb30038
Let libnetapi use it's own krb5 cred cache in memory if necessary.
...
Guenther
2008-01-07 20:12:38 +01:00
Günther Deschner
89669c66f2
Rearrange order of libnet join context init.
...
Guenther
2008-01-07 19:38:35 +01:00
Günther Deschner
5abae9ef15
Free libnet_JoinCtx after joining.
...
Guenther
2008-01-07 19:38:22 +01:00
Günther Deschner
e7258a4408
Close registry in libnetapi_free().
...
Guenther
2008-01-07 19:38:10 +01:00
Günther Deschner
a72ad63163
Add NET_API_STATUS_SUCCESS define.
...
Guenther
2008-01-07 19:37:54 +01:00
Günther Deschner
d73bde99e8
Fix two memleaks in libnetapi.
...
Guenther
2008-01-07 12:48:21 +01:00
Günther Deschner
bf9ce2a928
Failure while unjoining a domain is non-critical.
...
Just continue joining to the workgroup in that case.
Guenther
2008-01-07 12:48:21 +01:00
Günther Deschner
fe75e5ccdf
Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.
...
Guenther
2008-01-04 23:03:55 +01:00
Günther Deschner
ff5e15b1ba
Rename server_name to dc_name in libnet join structures.
...
Guenther
2008-01-04 17:43:15 +01:00
Günther Deschner
d88bb94f0e
In libnet_join finally separate the admin from the machine pwd entirely.
...
Guenther
2008-01-04 17:43:02 +01:00
Günther Deschner
2b221708c0
Add debug switch to netdomjoin.
...
Guenther
2008-01-04 15:21:41 +01:00
Günther Deschner
02e3887f39
Minor cosmetic cleanup for netdomjoin-gui.
...
Guenther
2008-01-04 15:21:35 +01:00
Günther Deschner
aaea8f1ed7
Fix some error strings in netdomjoin-gui.
...
Guenther
2008-01-04 11:55:08 +01:00
Günther Deschner
4deef80bed
Minor libnetapi join cosmetic cleanup.
...
Guenther
2008-01-03 18:15:22 +01:00
Michael Adam
a559533c0c
Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
...
Now all functions are converted to the consistent naming scheme.
Michael
2008-01-03 14:17:49 +01:00
Günther Deschner
75165ba4e7
Let DsGetDCName figure out whether domain_name is a flat_name when unjoining.
...
Guenther
2008-01-03 13:41:36 +01:00
Volker Lendecke
72dc717108
Fix the build
2007-12-25 11:38:26 +01:00
Günther Deschner
f192737ec8
Correct netapi header filename. Thanks Jeremy.
...
Guenther
2007-12-22 00:03:15 +01:00
Günther Deschner
740a2b080d
Move gtk app to the correct location. Thanks obnox!
...
Guenther
2007-12-21 17:29:15 +01:00
Günther Deschner
0c3de6f345
Move libnetapi examples into subdirs.
...
Guenther
2007-12-21 17:05:55 +01:00
Günther Deschner
cf57ade5ec
Add netdomjoin-gui (my first gui application), another libnetapi user.
...
Guenther
2007-12-21 16:36:06 +01:00
Günther Deschner
c502686f09
Add netdomjoin cmd line tool (another libnetapi example).
...
Guenther
2007-12-21 16:08:13 +01:00
Günther Deschner
faedc78fc7
Add getdc.c, a libnetapi example (incl. Makefile).
...
Guenther
2007-12-21 16:02:35 +01:00
Günther Deschner
5bc49546a3
Add basic remote NetGetDCName and NetGetAnyDCName versions to libnetapi.
...
Guenther
2007-12-21 15:51:00 +01:00
Günther Deschner
e46aa35d43
Make libnetapi_errstr use our NTSTATUS and WERROR error string macros.
...
Guenther
2007-12-21 15:30:29 +01:00
Günther Deschner
4df868e3c3
Add error string for access denied in libnetapi.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
acc5d8e784
Remove doubled cli_set_timeout calls from libnetapi.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
c255654c68
Keep libnetapi_NetX calls static for now.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
a2c5beda2e
Merge all headers into libnetapi.h.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
15c2bc15f2
Implement NetServerSetInfo level 1005 in local mode with smbconf registry.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
1cad549f54
Add NetServerGetInfo and NetServerSetInfo (for level 1005).
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
d1e4f9dd5c
Split out local and remote paths for NetGetJoinInformation.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
465e61a359
Add libnetapi_errstr().
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
74048fe7cf
Add support for remote and local unjoining in libnetapi.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
96ebdca45b
Remove unrequired TALLOC_CTX from libnetapi_NetJoinDomain & friends.
...
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
24605c9175
Fix NetJoinDomainLocal.
...
Guenther
2007-12-21 15:29:11 +01:00