Koozali.org: home of the SME Server

[Contrib] sme 7 password advanced options

michael_s

Lock account
« Reply #15 on: February 08, 2007, 09:57:58 AM »
Hi,

very nice contrib indeed...  :)

nenonano wrote:
Quote
Todo:
- possibility to setup expiration period for account
- possibility to lock an account when password age > (max age + expiration time)


I was playing around with the user-passwd-expiration script in
/etc/e-smith/events/actions/ executed by cron.daily.

I added the following in the script to lock a account when password is
expired :

 system("/sbin/e-smith/signal-event", "user-lock", $name);

look for the following in the script and add the red one:

 
Quote
                               if ($time2warn >= $pwdwarn) {
                                        system("/sbin/e-smith/signal-event", "user-lock", $name);
                                        #message to admin is hardcoded in english; not so bad..

                                        my $t1 = "To: admin\n";


With the Testsystem everything is working fine.
Maybe something to add to the contrib ?

Just my two cents.

Tschüss
Michael

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Lock account
« Reply #16 on: February 08, 2007, 02:01:54 PM »
Quote from: "michael_s"
Hi,

very nice contrib indeed...  :)



Thanks.. :-)

Quote from: "michael_s"

I was playing around with the user-passwd-expiration script in
/etc/e-smith/events/actions/ executed by cron.daily.

I added the following in the script to lock a account when password is
expired :

 system("/sbin/e-smith/signal-event", "user-lock", $name);

look for the following in the script and add the red one:

 
Quote
                               if ($time2warn >= $pwdwarn) {
                                        system("/sbin/e-smith/signal-event", "user-lock", $name);
                                        #message to admin is hardcoded in english; not so bad..

                                        my $t1 = "To: admin\n";


With the Testsystem everything is working fine.
Maybe something to add to the contrib ?

Just my two cents.

Tschüss
Michael


well.. yes.. this is what I want to add in the next release, but:
- automatic locking has to be selectable by admin
- admin must have the possibility of reset last password modification date (think about automatic lock of all users if pwd age is older than the expiration)
- admin must receive a mail with locking notification

thanks again for your suggestions.. I'm working on this contrib but I have not much time to spend on it.. :-D

Ciao
Stefano

Federico

Great Add-on!!!
« Reply #17 on: April 26, 2007, 07:42:02 AM »
Hi,

total noob here, (took me 15 minutes to figure how to get the rpm installed) I just had to register and thank you for posting this rpm, this package single handedly got me back using sme! Thanks, keep up the good work!!!!

Cheers,

Federico

Offline mhiggins

  • 14
  • +0/-0
great contrib
« Reply #18 on: May 06, 2007, 11:51:44 PM »
beautiful! thanks  :D
...

rsernowski

Re: Great Add-on!!!
« Reply #19 on: May 24, 2007, 07:23:09 PM »
Quote from: "Federico"
Hi,

total noob here, (took me 15 minutes to figure how to get the rpm installed) I just had to register and thank you for posting this rpm, this package single handedly got me back using sme! Thanks, keep up the good work!!!!

Cheers,

Federico


Hi Federico,
How did you install?

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Great Add-on!!!
« Reply #20 on: May 24, 2007, 07:51:35 PM »
Quote from: "rsernowski"

Hi Federico,
How did you install?


Hi..

I'm not Federico.. :-)

it's pretty easy:

Code: [Select]

cd /root
mkdir myrpm
cd myrpm
wget http://sviluppocms.no-ip.com/updates/smeserver-password-1.0.0-03.src.rpm
yum localinstall smeserver-password


After it, in server-manager, under "Collaboration" section, you'll find a link "passwords"..

HTH

Ciao
Stefano.

rsernowski

Re: Great Add-on!!!
« Reply #21 on: May 24, 2007, 09:05:02 PM »
Hi Stefano,

Sorry bout that
Thanks for the info. But the option password does not show up.
I unistalled .03 and installed .02 but still didn't show up. I also created user stefano , becuase it was giving a warning when installing.  So after I created user, I unistalled, (course booted) then installed . But didn't show up.

What is command line option to change to not strong passwords,this is all I need for the moment?

Thanks
RS

Hi..

I'm not Federico.. :-)

it's pretty easy:

Code: [Select]

cd /root
mkdir myrpm
cd myrpm
wget http://sviluppocms.no-ip.com/updates/smeserver-password-1.0.0-03.src.rpm
yum localinstall smeserver-password


After it, in server-manager, under "Collaboration" section, you'll find a link "passwords"..

HTH

Ciao
Stefano.[/quote]

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Great Add-on!!!
« Reply #22 on: May 24, 2007, 10:01:13 PM »
Quote from: "rsernowski"
Hi Stefano,

Sorry bout that
Thanks for the info. But the option password does not show up.


hi..

as I said in the first post of this topic, only english and italian language (i.e. panels) are supported..

maybe your language is different?

let me know

ciao
Stefano

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
[Contrib] sme 7 password advanced options
« Reply #23 on: May 24, 2007, 10:03:28 PM »
You will need to install the binary rpm, not the source though ;-)

http://sviluppocms.no-ip.com/updates/smeserver-password-1.0.0-03.noarch.rpm

Offline Stefano

  • *
  • 10,839
  • +2/-0
[Contrib] sme 7 password advanced options
« Reply #24 on: May 24, 2007, 10:20:10 PM »
Quote from: "cjensen"
You will need to install the binary rpm, not the source though ;-)

http://sviluppocms.no-ip.com/updates/smeserver-password-1.0.0-03.noarch.rpm


arghhhh...

I'm sorry.. :oops:

try the RIGHT rpm and let me know ;-)

and.. thanks to Craig

ciao
Stefano and 'maybe it's time to go to sleep' ;-)

rsernowski

[Contrib] sme 7 password advanced options
« Reply #25 on: May 24, 2007, 10:29:39 PM »
Yep that worked, Thanks
RS

Offline zeno

  • 8
  • +0/-0
Can't install on 7.2
« Reply #26 on: August 07, 2007, 05:48:16 PM »
Hi 2 all.

I can't install this contrib on a fresh smeserver 7.2.
After i downloaded smeserver-password (1.0.0.3.noarch) i installed it with yum localinstall. But, after i make the signal-event reboot command, the password manager doesn't appear in the left menu.

What's is wrong?
I installed this contrib without problems on a 7.1.3 server! :?

the-heck

[Contrib] sme 7 password advanced options
« Reply #27 on: August 07, 2007, 07:16:15 PM »
Hi 2 all.
--------
Hello there!



I can't install this contrib on a fresh smeserver 7.2.
After i downloaded smeserver-password (1.0.0.3.noarch) i installed it with yum localinstall. But, after i make the signal-event reboot command, the password manager doesn't appear in the left menu.

What's is wrong?
I installed this contrib without problems on a 7.1.3 server!
-----
SME7.2 has a requirement of 7chars minimum.  Even if you setprop passwordstrength to none.  This is I think a limitation and not a bug.  If you can do a work around please post.

Offline cool34000

  • *
  • 339
  • +0/-0
[Contrib] sme 7 password advanced options
« Reply #28 on: August 07, 2007, 07:37:48 PM »
Hi,

Quote from: "the-heck"
the password manager doesn't appear in the left menu.
Quote from: "zeno"
SME7.2 has a requirement of 7chars minimum. Even if you setprop passwordstrength to none. This is I think a limitation and not a bug. If you can do a work around please post.
I guess this is none of his problem: he has no panel in the server-manager!


The-heck, I've tested this contribs under 7.2 succesfully. The panel appears in 'collaboration' menu in the server-manager...

Quote from: "the-heck"
i make the signal-event reboot command
That's not needed... But if something is wrong, you need
Code: [Select]
# signal-event post-upgrade
# signal-event reboot
Try to reconfigure your server, maybe something is wrong elsewhere.
Again, this contribs runs very well under SME 7.2.

Offline bunkobugsy

  • *
  • 280
  • +4/-0
Re: [Contrib] sme 7 password advanced options
« Reply #29 on: January 14, 2008, 10:39:03 AM »
Something bad happened since upgrading to 7.3 and smeserver-password-1.0.0-04 contrib locked a user because password aged. Even though I reseted the password, when trying to login with the roaming profile I still get a "Account has been disabled. Please contact the administrator" from any PC, but it is possible to log in to webmail.
This may or may not be related to smeserver-password, but I somehow have the feeling that it's related to the latest samba update. Any ideeas?
Created bug http://bugs.contribs.org/show_bug.cgi?id=3755

It seems that this is a bug in 7.3, so anyone using this contrib try to set "Block account on password expiration?" to NO to avoid the same problem, have no clue yet how this can be fixed.
« Last Edit: January 14, 2008, 11:45:38 AM by bunkobugsy »