SOLVED make some tuning persistent in smb4.conf

Status
Not open for further replies.

frouty

Dabbler
Joined
May 24, 2017
Messages
26
Hi,
I got some weird devices where I can't do any modification (https://www.nidek-intl.com/product/ophthaloptom/diagnostic/dia_cornea/al-scan.html and https://www.nidek-intl.com/product/ophthaloptom/diagnostic/dia_cornea/opd-scan3.html)
They can communicate with Freenas if I do some modifications in the /usr/local/etc/smb4.conf
------
diff smb4.conf smb4.conf.ini
2c2
< server min protocol = NT1
---
> server min protocol = SMB2_02
20c20
< ntlm auth = yes
---
> ntlm auth = no
43c43
< client ntlmv2 auth = no
---
> client ntlmv2 auth = yes
-----

How can I make it persistente?
(System / tunable / variable : server_min_protocol / value :NT1 doesn't seem to work. I got a red message

Value can start with a letter and end with an alphanumeric. A period (.) once is a must. Alphanumeric and underscore characters are allowed And I can't save it.

And for ntlm auth and client ntlmv2 auth I don't know where should I look for.

Thanks
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
20c20
< ntlm auth = yes
> ntlm auth = no
43c43
< client ntlmv2 auth = no
> client ntlmv2 auth = yes
-----

It's easy with : Services / SMB / edit and tick the box NTLMv1 Auth.

for the server min protocol = NT1
# systcl -a | grep protocole
freenas.services.smb.config.server_min_protocol = SMB2_02

system / tunable / variable =freenas.services.smb.config.server_min_protocol = SMB2_02 / value = NT1 / save.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Anything you add to the "auxiliary parameters" field in "Services"->"SMB" will be automatically appended to the [global] section of the smb.conf. Anything you add to the "auxiliary parameters" field in "sharing"->"SMB" will be appended to the share configuration.
 
Status
Not open for further replies.
Top