ispman/bin ispman.userInfo,1.4,1.4.6.1

Pedro Algarvio <[email protected]> Mon, 02 Oct 2006 09:09:02 +0000
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/bin
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv18258/bin

Modified Files:
      Tag: dev_1_3-cyrus_virtdomain
	ispman.userInfo 
Log Message:
bin/ispman.userInfo now also works if using AllowFullEmailLogins.


Index: ispman.userInfo
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman.userInfo,v
retrieving revision 1.4
retrieving revision 1.4.6.1
diff -u -d -r1.4 -r1.4.6.1
--- ispman.userInfo	30 May 2004 23:35:32 -0000	1.4
+++ ispman.userInfo	2 Oct 2006 09:08:59 -0000	1.4.6.1
@@ -14,8 +14,14 @@
 use ISPMan;
 
 my $ispman = ISPMan->new();
+my $domain = $opts{'d'};
+my $user = $opts{'u'};
 
-my $dn = $ispman->getUserDN( $opts{'d'}, $opts{'u'} );
+if ( $ISPMan::Config->{'AllowFullEmailLogins'} ) {
+    $user = join '@', ($user, $domain);
+}
+
+my $dn = $ispman->getUserDN( $domain, $user );
 my $entry = $ispman->getEntry($dn);
 $ispman->dumpEntry($entry);
 


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