Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: emilelek on July 06, 2006, 04:43:50 PM

Title: charset and password config
Post by: emilelek on July 06, 2006, 04:43:50 PM
Hi All!

I have 2 configuration questions.

The first one is: how can I (properly) change SAMBA's charset settings in SME?
(I realize I shouldn't just edit smb.conf as normally would.)

My preferences would be:
display charset = ISO8859-2 (instead of ISO8859-1)
dos charset = 852 (instead of 850)
unix charset = ISO8859-2 (instead of UTF8)


... and I apologize for my second question (yes I know this is considered eXXXtremely insecure) but this is really needed:
How can I make null (blank) passwords acceptable?


Thanks in advance for your kind help!
Title: Re: charset and password config
Post by: meofcourse on July 06, 2006, 04:52:10 PM
Quote from: "emilelek"


... and I apologize for my second question (yes I know this is considered eXXXtremely insecure) but this is really needed:
How can I make null (blank) passwords acceptable?




sudo /sbin/e-smith/db configuration setprop passwordstrength Users none

to check to see what it is set at:

sudo /sbin/e-smith/db configuration getprop passwordstrength Users

source: http://no.longer.valid/phpwiki/index.php/SME%20Server%207%20password%20check%20and%20settings
Title: Re: charset and password config
Post by: cactus on July 06, 2006, 05:07:07 PM
Quote from: "emilelek"
how can I (properly) change SAMBA's charset settings in SME?
(I realize I shouldn't just edit smb.conf as normally would.)
Correct, modify the database as described below, expand the template and restart the service again.

Quote from: "emilelek"
My preferences would be:
display charset = ISO8859-2 (instead of ISO8859-1)
dos charset = 852 (instead of 850)
unix charset = ISO8859-2 (instead of UTF8)


Code: [Select]
sudo /sbin/e-smith/db configuration setprop smb DisplayCharSet ISO8859-2
sudo /sbin/e-smith/db configuration setprop smb DosCharSet 852
sudo /sbin/e-smith/db configuration setprop smb UnixCharSet ISO8859-2

sudo expand-template /etc/smb.conf
sudo signal-event reboot
The latter statement can also be replaced by the command to restart samba but I don't know the exact command.  The reboot will also take care of reloading the changes, but i agree it is overkill.
Title: Re: charset and password config
Post by: meofcourse on July 06, 2006, 05:17:29 PM
Quote from: "emilelek"
The latter statement can also be replaced by the command to restart samba but I don't know the exact command.  The reboot will also take care of reloading the changes, but i agree it is overkill.


service smb restart
Title: Re: charset and password config
Post by: CharlieBrady on July 06, 2006, 06:21:26 PM
Quote from: "cactus"

The latter statement can also be replaced by the command to restart samba but I don't know the exact command.  The reboot will also take care of reloading the changes, but i agree it is overkill.


Samba will notice that its configuration file has changed, and I think will load the new settings automatically.
Title: Re: charset and password config
Post by: dsemuk on July 06, 2006, 06:57:20 PM
Quote from: "meofcourse"
Quote from: "emilelek"


... and I apologize for my second question (yes I know this is considered eXXXtremely insecure) but this is really needed:
How can I make null (blank) passwords acceptable?




sudo /sbin/e-smith/db configuration setprop passwordstrength Users none

to check to see what it is set at:

sudo /sbin/e-smith/db configuration getprop passwordstrength Users

source: http://no.longer.valid/phpwiki/index.php/SME%20Server%207%20password%20check%20and%20settings


This will not allow completely blank passwords.

Dave
Title: charset and password config
Post by: meofcourse on July 06, 2006, 07:11:28 PM
why not -- it completely turns off password checking?
Title: Re: charset and password config
Post by: CharlieBrady on July 06, 2006, 07:12:17 PM
Quote from: "dsemuk"

This will not allow completely blank passwords.


Correct.

Why do you want to allow blank passwords?
Title: charset and password config
Post by: dsemuk on July 06, 2006, 07:26:06 PM
Quote from: "meofcourse"
why not -- it completely turns off password checking?


No it turns off password strength checking...

password strength checking = none

A password is still required.

I don't know how you would completely turn off the use of passwords.

Dave
Title: Re: charset and password config
Post by: emilelek on July 07, 2006, 04:36:09 PM
Quote from: "CharlieBrady"
Quote from: "dsemuk"

This will not allow completely blank passwords.


Correct.

Why do you want to allow blank passwords?


Setting the passwordstrength property to "none" really does not allow blank (null) passwords (the reset password dialog still says: "This field must not be left blank"), that's why I asked for a workaround ...
(I'm sorry for beeing that bad guy :evil:, but for "compatibility reasons" I would really need this /I would better not say much about the concrete situation because that would also be against security ... ;-) /)
Title: Re: charset and password config
Post by: emilelek on July 07, 2006, 04:52:25 PM
Quote from: "cactus"
... modify the database as described below, expand the template and restart the service again.


Code: [Select]
sudo /sbin/e-smith/db configuration setprop smb DisplayCharSet ISO8859-2
sudo /sbin/e-smith/db configuration setprop smb DosCharSet 852
sudo /sbin/e-smith/db configuration setprop smb UnixCharSet ISO8859-2

sudo expand-template /etc/smb.conf
sudo signal-event reboot


Thanks cactus, your code setting the CharSet props into db worked (checked with: sudo /sbin/e-smith/db configuration getprop smb DisplayCharSet ...etc.), but unfortunately expanding the template did not ...

I realized that smb.conf is not in /etc but in /etc/samba but it did not work with the changed path (sudo /sbin/e-smith/expand-template /etc/smb.conf)

Any ideas?

Thanks a lot for your efforts!
Title: charset and password config
Post by: emilelek on July 11, 2006, 04:12:59 PM
Thanks Guys indeed for all your help so far, but unfortunately I'm still stucked without anything workable for both of my questions ...

Could somebody please give some workable solution for my initial questions as:

1.    How to enable "real" blank passwords for users?

2.    How to set SAMBA's DisplayCharset, DosCharset and UnixCharset values properly and persistently?


Thx alot