Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jbahillo

Pages: [1]
3
News and Announcements / New forum organization
« on: November 23, 2015, 05:23:32 pm »
Hello all:

Trying to provide a better experience of our forums we have carried a small reorganization of the different boards, leaving them as follows:

Installation and upgrades (discussions regarding installation and upgrade process)
Email and groupware modules (discussions regarding Mail and OpenChange modules)
Directory and Authentication (discussions regarding Samba -File sharing + Domain -  modules)
Other modules (Any other module not covered on any of the previous boards)
Contributions, tips & tricks and feature requests (Any contribution - like scripts, backports and so on - from community, or feature requests should be placed here)

Please note that as a result of such reorganization, some topics may have been moved to "Installation and upgrades " board, but none have been deleted.

Hope this brings a better experience of our forums!

8
Installation and Upgrades / MOVED: pdo_mysql
« on: July 01, 2014, 11:29:41 am »

12
Installation and Upgrades / Bulk LDAP Password change
« on: February 20, 2013, 12:32:40 pm »
Hi guys:

I've created this script, that allows you to change your LDAP Users' passwords in a row. It creates a file in /tmp/ with the list of users and their passwords :

Code: [Select]
#!/usr/bin/perl
use strict;
use warnings;
use EBox;
use EBox::UsersAndGroups;
use EBox::Global;
use EBox::Util::Random;
EBox::init();

my $out ="/tmp/users.csv";
open (OUT,">$out") || die "ERROR: Can't create or write to file $out\n";
my $users = EBox::Global->modInstance('users');
my @userlist = @{$users->users()   }  ;
foreach my $user (@userlist) {
        my $password;
        $password =  EBox::Util::Random::generate(8);
        print OUT $user->name()." ". $password."\n";
        $user->changePassword($password,0)
}
  close (OUT);

Just feel free to use at your best convenience. It has been included in http://trac.zentyal.org/wiki/Documentation/Community/HowTo/BULK_LDAP_Password_Change as well so you can find it if you look for resources in trac
;)

Cheers

Pages: [1]