mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
58f78fa182
Doing this required reworking ejsnet, particularly so it could take a
set of credentials, not just a username and password argument.
This required fixing the ejsnet.js test script, which now adds and
deletes a user, and is run from 'make test'. This should prevent it
being broken again.
Deleting a user from ejsnet required that the matching backend be
added to libnet, hooking fortunetly onto already existing code for the
actual deletion.
The js credentials interface now handles the 'set machine account' flag.
New functions have been added to provision.js to wrap the basic
operations (so we can write a command line version, as well as the web
based version).
Andrew Bartlett
(This used to be commit a5e7c17c34
)
57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
/*
|
|
Unix SMB/CIFS implementation.
|
|
|
|
Copyright (C) Rafal Szczesniak <mimir@samba.org> 2005
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
|
|
enum libnet_CreateUser_level {
|
|
LIBNET_CREATE_USER_GENERIC,
|
|
LIBNET_CREATE_USER_SAMR,
|
|
};
|
|
|
|
|
|
struct libnet_CreateUser {
|
|
enum libnet_CreateUser_level level;
|
|
|
|
struct {
|
|
const char *user_name;
|
|
const char *domain_name;
|
|
} in;
|
|
struct {
|
|
const char *error_string;
|
|
} out;
|
|
};
|
|
|
|
enum libnet_DeleteUser_level {
|
|
LIBNET_DELETE_USER_GENERIC,
|
|
LIBNET_DELETE_USER_SAMR,
|
|
};
|
|
|
|
|
|
struct libnet_DeleteUser {
|
|
enum libnet_DeleteUser_level level;
|
|
|
|
struct {
|
|
const char *user_name;
|
|
const char *domain_name;
|
|
} in;
|
|
struct {
|
|
const char *error_string;
|
|
} out;
|
|
};
|