On 04/04/2023 17:36, Pastor Frank E. Ram?rez via samba wrote:> Apologies for my english, I am not a native speaker.Never apologise for not speaking English like a native, I am English and whilst I haven't got a clue what your native language is, I can assure that I do not speak a word of it ;-) < Well, Samba is an AD> DC. So, the manpage said that I need to use the LDAP > attribute scriptPath. But I don't know how?? I tried creating a new user > with the --script-path option, but it did not work. How can I set this ldap > attribute??By the method you seem to have tried, adding '--script-path=SCRIPT_PATH' (where SCRIPT_PATH is the full path to the script) to the 'samba-tool user create' command should have added the attribute and value to the users AD object. Perhaps there was a problem with its formatting, can you please post the command you used. Rowland
Just a tip. I really don't know if this can work or not. But why not use RSAT from a Windows desktop in order to do such work? --- Gilberto Nunes Ferreira (47) 99676-7530 - Whatsapp / Telegram Em ter., 4 de abr. de 2023 ?s 13:55, Rowland Penny via samba < samba at lists.samba.org> escreveu:> > > On 04/04/2023 17:36, Pastor Frank E. Ram?rez via samba wrote: > > Apologies for my english, I am not a native speaker. > > Never apologise for not speaking English like a native, I am English and > whilst I haven't got a clue what your native language is, I can assure > that I do not speak a word of it ;-) > > < Well, Samba is an AD > > DC. So, the manpage said that I need to use the LDAP > > attribute scriptPath. But I don't know how?? I tried creating a new user > > with the --script-path option, but it did not work. How can I set this > ldap > > attribute?? > > By the method you seem to have tried, adding '--script-path=SCRIPT_PATH' > (where SCRIPT_PATH is the full path to the script) to the 'samba-tool > user create' command should have added the attribute and value to the > users AD object. Perhaps there was a problem with its formatting, can > you please post the command you used. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
This is just a new created for testing: samba-tool user create 'John' '1234' --userou='OU=Trabajadores,OU=Usuarios' --surname='Doe' --given-name='John' --initials='JD' --job-title='Network Administrator' --department='IT' --company='EPAPR' --description='IT Technical Support Account' --mail=' john.doe at epapr.cneart.cu' --script-path='netlogon.bat' El mar, 4 abr 2023 a las 12:56, Rowland Penny via samba (< samba at lists.samba.org>) escribi?:> > > On 04/04/2023 17:36, Pastor Frank E. Ram?rez via samba wrote: > > Apologies for my english, I am not a native speaker. > > Never apologise for not speaking English like a native, I am English and > whilst I haven't got a clue what your native language is, I can assure > that I do not speak a word of it ;-) > > < Well, Samba is an AD > > DC. So, the manpage said that I need to use the LDAP > > attribute scriptPath. But I don't know how?? I tried creating a new user > > with the --script-path option, but it did not work. How can I set this > ldap > > attribute?? > > By the method you seem to have tried, adding '--script-path=SCRIPT_PATH' > (where SCRIPT_PATH is the full path to the script) to the 'samba-tool > user create' command should have added the attribute and value to the > users AD object. Perhaps there was a problem with its formatting, can > you please post the command you used. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >