ispman/ispman-web/cgi-bin/tmpl/vhosts edit_acls.tmpl,1.8,1.9

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/vhosts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15167/ispman-web/cgi-bin/tmpl/vhosts

Modified Files:
	edit_acls.tmpl 
Log Message:
adjustments for UserMan API change

Index: edit_acls.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/vhosts/edit_acls.tmpl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- edit_acls.tmpl	20 Jun 2004 11:47:55 -0000	1.8
+++ edit_acls.tmpl	15 Jul 2004 08:19:12 -0000	1.9
@@ -44,19 +44,20 @@
 @webusers=();
 for (keys %$_wusers){ push @webusers, $_wusers->{$_}{'ispmanUserId'} };
     
-my $_dusers=$ispman->getDomainUsersForDomain($r->param('ispmanDomain'));
+my $_dusers=$ispman->getUsers($r->param('ispmanDomain'),[ "ispmanUserId" ]);
 @domainusers=();
 for (keys %$_dusers){
-    my $exploded_dn=$ispman->explodeDN($_dusers->{$_});
-    my $uid=$exploded_dn->{'uid'};
+    push @domainusers, $_dusers->{$_}{"ispmanUserId"};
+    #my $exploded_dn=$ispman->explodeDN($_dusers->{$_});
+    #my $uid=$exploded_dn->{'uid'};
     
     # FIXME!!!
     # Really dirty hack to fake the ispmanUserId which can not easily retrieved here.
     # This will get fixed with new ISPMan Core Libs
-    my $domain = $r->param("ispmanDomain");
-    $domain =~ s/\./_/;
-    $uid =~ s/_$domain//;
-    push @domainusers, $uid;
+    #my $domain = $r->param("ispmanDomain");
+    #$domain =~ s/\./_/;
+    #$uid =~ s/_$domain//;
+    #push @domainusers, $uid;
 }
 
 $text='';
@@ -64,7 +65,6 @@
     $text.="<option value='$_'>webuser: $_</option>";
 }
 
-my $users=$ispman->getDomainUsersForDomain($r->param('ispmanDomain'));
 foreach (@domainusers){
     $text.="<option value='$_'>domainuser: $_</option>\n";
 }



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.