RFC patch to allow servicepack param to be passed to net ads join cmd

Noel Power nopower at suse.com
Wed Jan 7 05:41:27 MST 2015


Hi,

I wanted to pass the osVer and osName attributes when joining via 'net
ads join' so that the Windows AD Server shows that information in the
Operating System [*] tab of the newly joined computer account. However
by default the samba version is shown in the 'Service pack' field. The
service pack information is sent automatically, it's not currently
possibly to change what is sent. To offer more flexibility this patch
adds the ability to specify an additional parameter as part of the 'net
ads join' cmd to set
a value for the service pack field, (if the new param is not specified
previous behaviour is preserved and the samba version is used)

e.g. net ads -UAdministrator join osVer='13.2' osName='openSUSE' 
osServicePack=''

thanks,

Noel

[*] in the Windows AD server the Operating System tab (from the
properties dialog) of a computer account shows 3 fields, 'Name',
'Version' & 'Service pack'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-allow-net-ads-join-accept-new-osServicePack-paramete.patch
Type: text/x-patch
Size: 4261 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150107/b0cd3147/attachment.bin>


More information about the samba-technical mailing list