Changes in smbpasswd.c to support Scope Id argument
Justo Alonso Achaques
justo at creditoycaucion.es
Thu Jun 3 08:22:27 GMT 1999
Sorry, but I don't know how to use the patch program.. ;((
At top of the file, add a variable definition:
extern pstring scope;
In function process_root, modify the line of the getopt call:
while ((ch = getopt(argc, argv, "adehmnj:r:sR:D:U:i:")) != EOF) {
^^
Then add a case option in the switch:
case 'i':
fstrcpy(scope,optarg);
strupper(scope);
break;
And voila!!... (If you want, you can add a entry in the usage function
for help message.
Recompile, and execute...
More information about the samba-ntdom
mailing list