ispman/install-data/templates users.ldif.template, 1.15, 1.15.8.1

Pedro Algarvio <[email protected]> Tue, 03 Oct 2006 12:29:12 +0000
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/install-data/templates
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv25777/ispman/install-data/templates

Modified Files:
      Tag: dev_1_3-cyrus_virtdomain2
	users.ldif.template 
Log Message:
Initial commit of seccond approach to cyrus virtdomains support.


Index: users.ldif.template
===================================================================
RCS file: /cvsroot/ispman/ispman/install-data/templates/users.ldif.template,v
retrieving revision 1.15
retrieving revision 1.15.8.1
diff -u -d -r1.15 -r1.15.8.1
--- users.ldif.template	18 Apr 2004 19:19:32 -0000	1.15
+++ users.ldif.template	3 Oct 2006 12:29:10 -0000	1.15.8.1
@@ -48,7 +48,12 @@
 <perl>
    $text="";
    if ($r->param("mailHost")){
-      my $address=join '@', ($r->param("uid"), $r->param("mailHost"));
+      my $address="";
+      if ($ispman->getConf("AllowFullEmailLogins") == 1) {
+         $address=join '@', ($r->param("userid"), $r->param("ispmanDomain"));
+      } else {
+         $address=join '@', ($r->param("uid"), $r->param("mailHost"));
+      }
       $text.="mailHost: ".$r->param("mailHost")."\n";
       $text.="mailRoutingAddress: $address\n";
    }


-------------------------------------------------------------------------
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