1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

s4-samba-tool: switched over to python version of samba-tool drs

This commit is contained in:
Andrew Tridgell
2010-11-27 23:50:25 +11:00
parent d06bf954ba
commit 3d8d382fe5
3 changed files with 3 additions and 12 deletions

View File

@ -51,7 +51,6 @@
#include "lib/events/events.h"
#include "auth/credentials/credentials.h"
#include "scripting/python/modules.h"
#include "samba_tool/drs/drs.h"
/* There's no Py_ssize_t in 2.4, apparently */
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
@ -199,7 +198,6 @@ static const struct net_functable net_functable[] = {
{"password", "Changes/Sets the password on a user account [server connection needed]\n", net_password, net_password_usage},
{"samdump", "dump the sam of a domain\n", net_samdump, net_samdump_usage},
{"samsync", "synchronise into the local ldb the sam of an NT4 domain\n", net_samsync_ldb, net_samsync_ldb_usage},
{"drs", "Implements functionality offered by repadmin.exe utility in Windows\n", net_drs, net_drs_usage},
{"gpo", "Administer group policies\n", net_gpo, net_gpo_usage},
{NULL, NULL, NULL, NULL}
};

View File

@ -1,17 +1,8 @@
#!/usr/bin/env python
bld.SAMBA_MODULE('samba_tool_drs',
source='drs/drs.c drs/drs_bind.c drs/drs_kcc.c drs/drs_replicate.c drs/drs_showrepl.c',
autoproto='drs/drs_proto.h',
subsystem='samba-tool',
deps='LIBCLI_DRSUAPI ldb ldbsamba',
internal_module=True
)
bld.SAMBA_BINARY('samba-tool',
source='samba_tool.c password.c vampire.c gpo.c',
autoproto='proto.h',
deps='samba-hostconfig samba-util samba-net popt POPT_SAMBA POPT_CREDENTIALS samba_tool_drs policy auth',
deps='samba-hostconfig samba-util samba-net popt POPT_SAMBA POPT_CREDENTIALS policy auth',
pyembed=True
)

View File

@ -168,3 +168,5 @@ from samba.netcmd.join import cmd_join
commands["join"] = cmd_join()
from samba.netcmd.rodc import cmd_rodc
commands["rodc"] = cmd_rodc()
from samba.netcmd.drs import cmd_drs
commands["drs"] = cmd_drs()