From cdf9b42754b7e97faa7fc4eb1ec69e32c0bfd1a0 Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Mon, 3 Dec 2001 17:14:23 +0000 Subject: added a tdb to store the account policy informations. You can change them with either usermanager->policies->account or from a command prompt on NT/W2K: net accounts /domain we can add a rpc accounts to the net command. As the net_rpc.c is still empty, I did not start. How should I add command to it ? Should I take the rpcclient/cmd_xxx functions and call them from there ? alse changed the SAM_UNK_INFO_3 parser, it's an NTTIME. This one is more for jeremy ;-) J.F. (This used to be commit bc28a8eebd9245ce3004ae4b1a359db51f77bf21) --- source3/utils/smbgroupedit.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'source3/utils/smbgroupedit.c') diff --git a/source3/utils/smbgroupedit.c b/source3/utils/smbgroupedit.c index 9d42d2fc92..58ed0a8294 100644 --- a/source3/utils/smbgroupedit.c +++ b/source3/utils/smbgroupedit.c @@ -246,6 +246,16 @@ int main (int argc, char **argv) exit(1); } + if(pdb_generate_sam_sid()==False) { + printf("Can not read machine SID\n"); + return 0; + } + + if (init_group_mapping()==False) { + printf("Could not open tdb mapping file.\n"); + return 0; + } + while ((ch = getopt(argc, argv, "a:c:d:ln:p:st:u:vx:")) != EOF) { switch(ch) { case 'a': @@ -325,18 +335,6 @@ int main (int argc, char **argv) break; } } - - if (init_group_mapping()==False) { - printf("Could not open tdb mapping file.\n"); - return 0; - } - - if(pdb_generate_sam_sid()==False) { - printf("Can not read machine SID\n"); - return 0; - } - - default_group_mapping(); if (add_group) return addgroup(group, sid_type, ntgroup, group_desc, privilege); -- cgit