[phpldapadmin] [ phpldapadmin-Patches-2974901 ] enable modify member form to use netgroups

"SourceForge.net" <[email protected]> Tue, 16 Nov 2010 11:05:41 +0000
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Patches item #2974901, was opened at 2010-03-23 09:33
Message generated for change (Comment added) made by wurley
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498548&aid=2974901&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: enable modify member form to use netgroups

Initial Comment:
--- phpldapadmin-1.2.0.5/htdocs/modify_member_form.php_ORIGINAL 2010-01-30 00:21:20.000000000 -0500
+++ phpldapadmin-1.2.0.5/htdocs/modify_member_form.php_MODIFIED 2010-03-19 12:32:38.000000000 -0400
@@ -98,9 +98,25 @@
echo '<td>';
echo '<select name="notmembers" size="10" multiple>';

-foreach ($possible_members as $possible)
- printf('<option>%s</option>',$possible);
-
+switch ($request['attr']) {
+ case "nisnetgrouptriple":
+ sort($possible_members);
+ foreach ($possible_members as $possible) {
+         // Added for output formating
+ $matches = preg_split("/[=,]/", $possible);
+         $possible="(," . $matches[1] . ",)";
+         if(!in_array($possible, $current_members)) {
+                 printf('<option>%s</option>',$possible); }
+         }
+ break;
+ case ("memberuid" || "member" || "uniquemember"):
+ sort($possible_members);
+ foreach ($possible_members as $possible) {
+ if(!in_array($possible, $current_members)) {
+ printf('<option>%s</option>',$possible); }
+ }
+ break;
+}
echo '</select>';
echo '</td>';

@@ -108,6 +124,7 @@
echo '<td>';
echo '<select name="members" size="10" multiple>';

+sort($current_members);
foreach ($current_members as $current)
printf('<option>%s</option>',$current);

----------------------------------------------------------------------

>Comment By: Deon George (wurley)
Date: 2010-11-16 22:05

Message:
Commit #7980d1c

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498548&aid=2974901&group_id=61828

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/