dslsusers.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!-- --- BEGIN COPYRIGHT BLOCK ---
  2. This Program is free software; you can redistribute it and/or modify it under
  3. the terms of the GNU General Public License as published by the Free Software
  4. Foundation; version 2 of the License.
  5. This Program is distributed in the hope that it will be useful, but WITHOUT
  6. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  7. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  8. You should have received a copy of the GNU General Public License along with
  9. this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
  10. Place, Suite 330, Boston, MA 02111-1307 USA.
  11. In addition, as a special exception, Red Hat, Inc. gives You the additional
  12. right to link the code of this Program with code not covered under the GNU
  13. General Public License ("Non-GPL Code") and to distribute linked combinations
  14. including the two, subject to the limitations in this paragraph. Non-GPL Code
  15. permitted under this exception must only link to the code of this Program
  16. through those well defined interfaces identified in the file named EXCEPTION
  17. found in the source code files (the "Approved Interfaces"). The files of
  18. Non-GPL Code may instantiate templates or use macros or inline functions from
  19. the Approved Interfaces without causing the resulting work to be covered by
  20. the GNU General Public License. Only Red Hat, Inc. may make changes or
  21. additions to the list of Approved Interfaces. You must obey the GNU General
  22. Public License in all respects for all of the Program code and other code used
  23. in conjunction with the Program except the Non-GPL Code covered by this
  24. exception. If you modify this file, you may extend this exception to your
  25. version of the file, but you are not obligated to do so. If you do not wish to
  26. provide this exception without modification, you must delete this exception
  27. statement from your version and license this file solely under the GPL without
  28. exception.
  29. Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  30. Copyright (C) 2005 Red Hat, Inc.
  31. All rights reserved.
  32. --- END COPYRIGHT BLOCK --- -->
  33. <HTML>
  34. <HEAD><TITLE>Manage Users</TITLE>
  35. <SCRIPT language=JavaScript>
  36. function doList()
  37. {
  38. var theForm = document.listForm;
  39. var baseDesc;
  40. theForm.base.value = baseDN();
  41. baseDesc = baseDescription();
  42. if ( theForm.searchstring.value.length == 0 ) {
  43. theForm.filterpattern.value = '(cn=*)';
  44. theForm.searchdesc.value = '<BR>All users ' + baseDesc;
  45. return( true ); // submit the form
  46. }
  47. theForm.searchdesc.value = '<BR>Users ' + baseDesc + ' whose <B>' +
  48. theForm.attr.options[ theForm.attr.selectedIndex ].text + '</B> ' +
  49. theForm.patternSelect.options[ theForm.patternSelect.selectedIndex
  50. ].text + ' <B>' + theForm.searchstring.value + '</B>';
  51. theForm.filterpattern.value = theForm.patternSelect.options[
  52. theForm.patternSelect.selectedIndex ].value;
  53. return( true ); // submit
  54. }
  55. function doEdit()
  56. {
  57. var theForm = document.editForm;
  58. if ( theForm.visiblesearchstring.value.length == 0 ) {
  59. theForm.searchstring.value = '*'; // a bit of a hack
  60. } else {
  61. theForm.searchstring.value = theForm.visiblesearchstring.value;
  62. }
  63. theForm.listtemplate.value = document.listForm.listtemplate.options[
  64. document.listForm.listtemplate.selectedIndex ].value;
  65. theForm.base.value = baseDN();
  66. return( true ); // submit the form
  67. }
  68. function baseDN()
  69. {
  70. var theForm = document.listForm;
  71. var escapedDN;
  72. if ( theForm.encodedbase.type == 'hidden' ) {
  73. escapedDN = theForm.encodedbase.value;
  74. } else {
  75. escapedDN = theForm.encodedbase.options[
  76. theForm.encodedbase.selectedIndex ].value;
  77. }
  78. return( unescape( escapedDN ));
  79. }
  80. function baseDescription()
  81. {
  82. var theForm = document.listForm;
  83. if ( theForm.encodedbase.type == 'hidden' ) {
  84. return( '' );
  85. } else {
  86. return( 'in ' + theForm.encodedbase.options[
  87. theForm.encodedbase.selectedIndex ].text );
  88. }
  89. }
  90. </SCRIPT>
  91. </HEAD>
  92. <!-- BODY "onLoad='document.editForm.visiblesearchstring.focus()'" -->
  93. <CENTER><TABLE BORDER="2" CELLPADDING="10" WIDTH="100%">
  94. <TR><TD ALIGN="center" WIDTH="100%">
  95. <FONT SIZE="+2"><B>Manage Users</B></FONT>
  96. </TD></TR></TABLE></CENTER>
  97. <!-- DS_LAST_OP_INFO "prefix=<P><FONT SIZE=%22%2B1%22>The user " "suffix=</FONT><HR>" -->
  98. <FORM METHOD="POST" ACTION="dosearch" NAME="editForm"
  99. onSubmit="return doEdit()">
  100. <INPUT TYPE="hidden" NAME="mode" value="smart">
  101. <INPUT TYPE="hidden" NAME="type" value="People">
  102. <INPUT TYPE="hidden" NAME="editable" value="true">
  103. <INPUT TYPE="hidden" NAME="link2edit" value="true">
  104. <INPUT TYPE="hidden" NAME="goback" value="Return To Manage Users Screen">
  105. <INPUT TYPE="hidden" NAME="base" VALUE="">
  106. <INPUT TYPE="hidden" NAME="listtemplate" VALUE="">
  107. <INPUT TYPE="hidden" NAME="searchstring" VALUE="">
  108. <B>Find user:</B><BR>
  109. <INPUT TYPE="text" NAME="visiblesearchstring" SIZE=25 VALUE="">
  110. <INPUT TYPE="submit" VALUE=" Find ">
  111. </FORM>
  112. <FORM METHOD="POST" ACTION="dosearch" NAME="listForm"
  113. onSubmit="return doList()">
  114. <INPUT TYPE="hidden" NAME="mode" VALUE="pattern">
  115. <INPUT TYPE="hidden" NAME="type" VALUE="People">
  116. <INPUT TYPE="hidden" NAME="filterprefix" VALUE="(&(objectclass=person)">
  117. <INPUT TYPE="hidden" NAME="filtersuffix" VALUE=")">
  118. <INPUT TYPE="hidden" NAME="filterpattern" VALUE="">
  119. <INPUT TYPE="hidden" NAME="searchdesc" VALUE="">
  120. <INPUT TYPE="hidden" NAME="listifone" VALUE="true">
  121. <INPUT TYPE="hidden" NAME="link2edit" VALUE="true">
  122. <INPUT TYPE="hidden" NAME="goback" VALUE="Return To Manage Users Screen">
  123. <INPUT TYPE="hidden" NAME="base" VALUE="">
  124. <B>Find all users whose:</B>
  125. <BR>
  126. <NOBR>
  127. <SELECT name="attr">
  128. <OPTION VALUE="cn">full name
  129. <OPTION VALUE="sn">last name
  130. <OPTION VALUE="uid">user id
  131. <OPTION VALUE="telephonenumber">phone number
  132. <OPTION VALUE="mail">email address
  133. </SELECT>
  134. <SELECT name="patternSelect">
  135. <OPTION VALUE="(%a=*%v*)">contains
  136. <OPTION VALUE="(%a=%v)">is
  137. <OPTION VALUE="(!(%a=%v))">isn't
  138. <OPTION VALUE="(%a~=%v)">sounds like
  139. <OPTION VALUE="(%a=%v*)">starts with
  140. <OPTION VALUE="(%a=*%v)">ends with
  141. </SELECT>
  142. <INPUT TYPE="text" NAME="searchstring" VALUE="" SIZE="17">
  143. <INPUT TYPE="submit" VALUE=" Find "></TD>
  144. </NOBR>
  145. <SPACER TYPE=vertical SIZE=20>
  146. <TABLE BORDER=0>
  147. <!-- DS_LOCATIONPOPUP "name=encodedbase" "prefix=<TR><TD><B>Look within:</B></TD><TD>" "suffix="</TD></TR>" -->
  148. </TD></TR>
  149. <TR><TD>
  150. <B>Format:</B></TD><TD>
  151. <SELECT name="listtemplate">
  152. <OPTION VALUE="People">On-Screen
  153. <OPTION VALUE="People-report">Printer
  154. </SELECT>
  155. </TD></TR></TABLE>
  156. <SPACER TYPE=vertical SIZE=5>
  157. <TABLE BORDER="2" WIDTH="100%">
  158. <TR>
  159. <TD WIDTH="50%" ALIGN="center"><INPUT TYPE="reset" VALUE=" Reset "></TD>
  160. <TD WIDTH="50%" ALIGN="center">
  161. <!-- HELPBUTTON "DSLSUSERS" -->
  162. </TD></TR></TABLE>
  163. </FORM>
  164. <!-- ENDHTML -->