ispman/lib/ISPMan UserMan.pm,1.58.4.2,1.58.4.3

Pedro Algarvio <[email protected]> Tue, 03 Oct 2006 17:33:42 +0000
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv12687/lib/ISPMan

Modified Files:
      Tag: dev_1_3-cyrus_virtdomain2
	UserMan.pm 
Log Message:
changed getUserDN to replace all ocurrence of '.' and '@' to '_' to the passed uid arg. Updated HEAD changes.


Index: UserMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/UserMan.pm,v
retrieving revision 1.58.4.2
retrieving revision 1.58.4.3
diff -u -d -r1.58.4.2 -r1.58.4.3
--- UserMan.pm	3 Oct 2006 16:52:20 -0000	1.58.4.2
+++ UserMan.pm	3 Oct 2006 17:33:40 -0000	1.58.4.3
@@ -175,7 +175,7 @@
     if ( $self->addDataFromLdif( "templates/users.ldif.template", $r ) ) {
         if ( $r->param("mailHost") ) {
             my $quota=$r->param("mailQuota") * 1024;
-            if ( lc( $ISPMan::Config->{'AllowFullEmailLogins'} ) == 'yes' {
+            if ( lc( $ISPMan::Config->{'AllowFullEmailLogins'} ) == 'yes' ) {
                 my $cvd_uid = join '@', ( $r->param("userid"), $r->param("ispmanDomain") );
                 $self->addProcessToHost(
                     $domain, $r->param("mailHost"),"createMailbox", "mailbox=$cvd_uid"
@@ -499,6 +499,7 @@
 sub getUserDN {
     my $self = shift;
     my ( $domain, $uid ) = @_;
+    $uid =~ s/\.|\@/_/g;
     return join( ",", "uid=$uid", $self->getUsersBranchDN($domain) );
 }
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV