1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00
Commit Graph

87 Commits

Author SHA1 Message Date
c04b738a13 Add LIBNETAPI_LOCAL_SERVER() macro.
Guenther
(This used to be commit 4bdcf07bcc)
2008-01-25 17:21:29 +01:00
a30361ede3 No need to close registry on libnetapi_free() anymore.
Guenther
(This used to be commit 6bf75652ef)
2008-01-25 17:21:19 +01:00
db40120c73 Fix the build w/o ADS.
Guenther
(This used to be commit 645f2376d4)
2008-01-18 08:50:33 +01:00
9dd8940e5f Add header for NetGetJoinableOUs to libnetapi.
Guenther
(This used to be commit f297ea259d)
2008-01-18 08:49:24 +01:00
b18fd380bd Add NetGetJoinableOUs() to libnetapi (incl. example).
Guenther
(This used to be commit 8858e403e1)
2008-01-18 02:55:19 +01:00
b1424846c6 Cosmetics and error string reporting for libnetapi.
Guenther
(This used to be commit 4ca3392851)
2008-01-18 02:55:10 +01:00
cfb7e25466 Add some more debugging into netdomjoin-gui.
Guenther
(This used to be commit d4c5b32322)
2008-01-18 02:54:49 +01:00
bb97b272a9 Fix local hostname detection in netdomjoin-gui.
Guenther
(This used to be commit 30458116b3)
2008-01-18 02:54:36 +01:00
c2ff6c94f2 Improve libnetapi_set_error_string().
Guenther
(This used to be commit 96f645553a)
2008-01-18 02:54:29 +01:00
d1abd4d866 Use new pidl-generated netlogon client calls in NetApi GetDcName().
Guenther
(This used to be commit 733e07a06c)
2008-01-17 16:54:46 +01:00
7bfceba4bc Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael
(This used to be commit c5a7d421c5)
2008-01-16 17:10:02 +01:00
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 c2a9346faa)
2008-01-13 02:14:34 +01:00
c79ce2ffa3 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
(This used to be commit 19a980f520)
2008-01-11 15:32:20 +01:00
efcf285e27 Fix libnetapi error string callers.
Guenther
(This used to be commit 1ad7a0a361)
2008-01-11 15:28:24 +01:00
7a87256cd1 Include some basic headers in netapi.h.
Guenther
(This used to be commit 23b92a6fa5)
2008-01-11 15:10:15 +01:00
4eed7883bb Refactor libnetapi error string functions a bit.
Guenther
(This used to be commit 3b450a8bcc)
2008-01-11 15:09:54 +01:00
67f2afe3c4 Correctly free buffers in netdomjoin-gui.
Guenther
(This used to be commit 04d78d4d9a)
2008-01-08 11:59:01 +01:00
200bba3ad6 Make name_buffer in NetGetJoinInformation() talloced.
Guenther
(This used to be commit 421905fb60)
2008-01-08 11:59:01 +01:00
a01dc30db7 Add NetApiBufferFree() to libnetapi.
Guenther
(This used to be commit c49196954d)
2008-01-08 11:59:01 +01:00
ab216a1b4e Fix crash bug when strequal is used too late in libnetapi_free.
Guenther
(This used to be commit ba2b8a310e)
2008-01-08 11:59:01 +01:00
e3ea1e1391 Enable talloc reporting in libnetapi if DEVELOPER compiled.
Guenther
(This used to be commit 01e9151546)
2008-01-07 22:57:30 +01:00
74fc0bf9e5 In libnetapi example, use libnetapi_get_error_string().
Guenther
(This used to be commit b624db92d6)
2008-01-07 20:13:40 +01:00
d6659f8ac8 In the local path of NetJoinDomain, try to get error string from libnetjoin.
Guenther
(This used to be commit 0f0f0e1302)
2008-01-07 20:13:26 +01:00
751fc874be Add libnetapi_set_error_string and libnetapi_get_error_string.
Guenther
(This used to be commit f8806bad81)
2008-01-07 20:13:18 +01:00
1b3520db88 Add krb5 cc env to libnetapi_ctx.
Guenther
(This used to be commit df2b078fa1)
2008-01-07 20:13:02 +01:00
1fba8c8019 Let libnetapi use it's own krb5 cred cache in memory if necessary.
Guenther
(This used to be commit 863fb30038)
2008-01-07 20:12:38 +01:00
528d253cc8 Rearrange order of libnet join context init.
Guenther
(This used to be commit 89669c66f2)
2008-01-07 19:38:35 +01:00
0b92d8bc79 Free libnet_JoinCtx after joining.
Guenther
(This used to be commit 5abae9ef15)
2008-01-07 19:38:22 +01:00
cc1982ab1c Close registry in libnetapi_free().
Guenther
(This used to be commit e7258a4408)
2008-01-07 19:38:10 +01:00
fa1e5e95d5 Add NET_API_STATUS_SUCCESS define.
Guenther
(This used to be commit a72ad63163)
2008-01-07 19:37:54 +01:00
be7df54c39 Fix two memleaks in libnetapi.
Guenther
(This used to be commit d73bde99e8)
2008-01-07 12:48:21 +01:00
e6c3ac59c5 Failure while unjoining a domain is non-critical.
Just continue joining to the workgroup in that case.

Guenther
(This used to be commit bf9ce2a928)
2008-01-07 12:48:21 +01:00
395c366237 Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.
Guenther
(This used to be commit fe75e5ccdf)
2008-01-04 23:03:55 +01:00
28ef4878d9 Rename server_name to dc_name in libnet join structures.
Guenther
(This used to be commit ff5e15b1ba)
2008-01-04 17:43:15 +01:00
0399df22f0 In libnet_join finally separate the admin from the machine pwd entirely.
Guenther
(This used to be commit d88bb94f0e)
2008-01-04 17:43:02 +01:00
f78c318eb0 Add debug switch to netdomjoin.
Guenther
(This used to be commit 2b221708c0)
2008-01-04 15:21:41 +01:00
564a54aa16 Minor cosmetic cleanup for netdomjoin-gui.
Guenther
(This used to be commit 02e3887f39)
2008-01-04 15:21:35 +01:00
cf6e59de2b Fix some error strings in netdomjoin-gui.
Guenther
(This used to be commit aaea8f1ed7)
2008-01-04 11:55:08 +01:00
be88a67388 Minor libnetapi join cosmetic cleanup.
Guenther
(This used to be commit 4deef80bed)
2008-01-03 18:15:22 +01:00
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 a559533c0c)
2008-01-03 14:17:49 +01:00
6afaafe083 Let DsGetDCName figure out whether domain_name is a flat_name when unjoining.
Guenther
(This used to be commit 75165ba4e7)
2008-01-03 13:41:36 +01:00
921d8782cc Fix the build
(This used to be commit 72dc717108)
2007-12-25 11:38:26 +01:00
86dfb55ffb Correct netapi header filename. Thanks Jeremy.
Guenther
(This used to be commit f192737ec8)
2007-12-22 00:03:15 +01:00
657afffaae Move gtk app to the correct location. Thanks obnox!
Guenther
(This used to be commit 740a2b080d)
2007-12-21 17:29:15 +01:00
77a2e13cb1 Move libnetapi examples into subdirs.
Guenther
(This used to be commit 0c3de6f345)
2007-12-21 17:05:55 +01:00
13d159bc2d Add netdomjoin-gui (my first gui application), another libnetapi user.
Guenther
(This used to be commit cf57ade5ec)
2007-12-21 16:36:06 +01:00
f3607f85b6 Add netdomjoin cmd line tool (another libnetapi example).
Guenther
(This used to be commit c502686f09)
2007-12-21 16:08:13 +01:00
27a58bd50c Add getdc.c, a libnetapi example (incl. Makefile).
Guenther
(This used to be commit faedc78fc7)
2007-12-21 16:02:35 +01:00
eddd190921 Add basic remote NetGetDCName and NetGetAnyDCName versions to libnetapi.
Guenther
(This used to be commit 5bc49546a3)
2007-12-21 15:51:00 +01:00
d230cd8dd5 Make libnetapi_errstr use our NTSTATUS and WERROR error string macros.
Guenther
(This used to be commit e46aa35d43)
2007-12-21 15:30:29 +01:00