| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <!-- --- BEGIN COPYRIGHT BLOCK ---
- This Program is free software; you can redistribute it and/or modify it under
- the terms of the GNU General Public License as published by the Free Software
- Foundation; version 2 of the License.
- This Program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- You should have received a copy of the GNU General Public License along with
- this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- Place, Suite 330, Boston, MA 02111-1307 USA.
- In addition, as a special exception, Red Hat, Inc. gives You the additional
- right to link the code of this Program with code not covered under the GNU
- General Public License ("Non-GPL Code") and to distribute linked combinations
- including the two, subject to the limitations in this paragraph. Non-GPL Code
- permitted under this exception must only link to the code of this Program
- through those well defined interfaces identified in the file named EXCEPTION
- found in the source code files (the "Approved Interfaces"). The files of
- Non-GPL Code may instantiate templates or use macros or inline functions from
- the Approved Interfaces without causing the resulting work to be covered by
- the GNU General Public License. Only Red Hat, Inc. may make changes or
- additions to the list of Approved Interfaces. You must obey the GNU General
- Public License in all respects for all of the Program code and other code used
- in conjunction with the Program except the Non-GPL Code covered by this
- exception. If you modify this file, you may extend this exception to your
- version of the file, but you are not obligated to do so. If you do not wish to
- provide this exception without modification, you must delete this exception
- statement from your version and license this file solely under the GPL without
- exception.
-
- Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- Copyright (C) 2005 Red Hat, Inc.
- All rights reserved.
- --- END COPYRIGHT BLOCK --- -->
- <HTML>
- <HEAD><TITLE>Manage Users</TITLE>
- <SCRIPT language=JavaScript>
- function doList()
- {
- var theForm = document.listForm;
- var baseDesc;
- theForm.base.value = baseDN();
- baseDesc = baseDescription();
- if ( theForm.searchstring.value.length == 0 ) {
- theForm.filterpattern.value = '(cn=*)';
- theForm.searchdesc.value = '<BR>All users ' + baseDesc;
- return( true ); // submit the form
- }
- theForm.searchdesc.value = '<BR>Users ' + baseDesc + ' whose <B>' +
- theForm.attr.options[ theForm.attr.selectedIndex ].text + '</B> ' +
- theForm.patternSelect.options[ theForm.patternSelect.selectedIndex
- ].text + ' <B>' + theForm.searchstring.value + '</B>';
- theForm.filterpattern.value = theForm.patternSelect.options[
- theForm.patternSelect.selectedIndex ].value;
-
- return( true ); // submit
- }
- function doEdit()
- {
- var theForm = document.editForm;
- if ( theForm.visiblesearchstring.value.length == 0 ) {
- theForm.searchstring.value = '*'; // a bit of a hack
- } else {
- theForm.searchstring.value = theForm.visiblesearchstring.value;
- }
-
- theForm.listtemplate.value = document.listForm.listtemplate.options[
- document.listForm.listtemplate.selectedIndex ].value;
- theForm.base.value = baseDN();
- return( true ); // submit the form
- }
- function baseDN()
- {
- var theForm = document.listForm;
- var escapedDN;
- if ( theForm.encodedbase.type == 'hidden' ) {
- escapedDN = theForm.encodedbase.value;
- } else {
- escapedDN = theForm.encodedbase.options[
- theForm.encodedbase.selectedIndex ].value;
- }
- return( unescape( escapedDN ));
- }
- function baseDescription()
- {
- var theForm = document.listForm;
- if ( theForm.encodedbase.type == 'hidden' ) {
- return( '' );
- } else {
- return( 'in ' + theForm.encodedbase.options[
- theForm.encodedbase.selectedIndex ].text );
- }
- }
- </SCRIPT>
- </HEAD>
- <!-- BODY "onLoad='document.editForm.visiblesearchstring.focus()'" -->
- <CENTER><TABLE BORDER="2" CELLPADDING="10" WIDTH="100%">
- <TR><TD ALIGN="center" WIDTH="100%">
- <FONT SIZE="+2"><B>Manage Users</B></FONT>
- </TD></TR></TABLE></CENTER>
- <!-- DS_LAST_OP_INFO "prefix=<P><FONT SIZE=%22%2B1%22>The user " "suffix=</FONT><HR>" -->
- <FORM METHOD="POST" ACTION="dosearch" NAME="editForm"
- onSubmit="return doEdit()">
- <INPUT TYPE="hidden" NAME="mode" value="smart">
- <INPUT TYPE="hidden" NAME="type" value="People">
- <INPUT TYPE="hidden" NAME="editable" value="true">
- <INPUT TYPE="hidden" NAME="link2edit" value="true">
- <INPUT TYPE="hidden" NAME="goback" value="Return To Manage Users Screen">
- <INPUT TYPE="hidden" NAME="base" VALUE="">
- <INPUT TYPE="hidden" NAME="listtemplate" VALUE="">
- <INPUT TYPE="hidden" NAME="searchstring" VALUE="">
- <B>Find user:</B><BR>
- <INPUT TYPE="text" NAME="visiblesearchstring" SIZE=25 VALUE="">
- <INPUT TYPE="submit" VALUE=" Find ">
- </FORM>
- <FORM METHOD="POST" ACTION="dosearch" NAME="listForm"
- onSubmit="return doList()">
- <INPUT TYPE="hidden" NAME="mode" VALUE="pattern">
- <INPUT TYPE="hidden" NAME="type" VALUE="People">
- <INPUT TYPE="hidden" NAME="filterprefix" VALUE="(&(objectclass=person)">
- <INPUT TYPE="hidden" NAME="filtersuffix" VALUE=")">
- <INPUT TYPE="hidden" NAME="filterpattern" VALUE="">
- <INPUT TYPE="hidden" NAME="searchdesc" VALUE="">
- <INPUT TYPE="hidden" NAME="listifone" VALUE="true">
- <INPUT TYPE="hidden" NAME="link2edit" VALUE="true">
- <INPUT TYPE="hidden" NAME="goback" VALUE="Return To Manage Users Screen">
- <INPUT TYPE="hidden" NAME="base" VALUE="">
- <B>Find all users whose:</B>
- <BR>
- <NOBR>
- <SELECT name="attr">
- <OPTION VALUE="cn">full name
- <OPTION VALUE="sn">last name
- <OPTION VALUE="uid">user id
- <OPTION VALUE="telephonenumber">phone number
- <OPTION VALUE="mail">email address
- </SELECT>
- <SELECT name="patternSelect">
- <OPTION VALUE="(%a=*%v*)">contains
- <OPTION VALUE="(%a=%v)">is
- <OPTION VALUE="(!(%a=%v))">isn't
- <OPTION VALUE="(%a~=%v)">sounds like
- <OPTION VALUE="(%a=%v*)">starts with
- <OPTION VALUE="(%a=*%v)">ends with
- </SELECT>
- <INPUT TYPE="text" NAME="searchstring" VALUE="" SIZE="17">
- <INPUT TYPE="submit" VALUE=" Find "></TD>
- </NOBR>
- <SPACER TYPE=vertical SIZE=20>
- <TABLE BORDER=0>
- <!-- DS_LOCATIONPOPUP "name=encodedbase" "prefix=<TR><TD><B>Look within:</B></TD><TD>" "suffix="</TD></TR>" -->
- </TD></TR>
- <TR><TD>
- <B>Format:</B></TD><TD>
- <SELECT name="listtemplate">
- <OPTION VALUE="People">On-Screen
- <OPTION VALUE="People-report">Printer
- </SELECT>
- </TD></TR></TABLE>
- <SPACER TYPE=vertical SIZE=5>
- <TABLE BORDER="2" WIDTH="100%">
- <TR>
- <TD WIDTH="50%" ALIGN="center"><INPUT TYPE="reset" VALUE=" Reset "></TD>
- <TD WIDTH="50%" ALIGN="center">
- <!-- HELPBUTTON "DSLSUSERS" -->
- </TD></TR></TABLE>
- </FORM>
- <!-- ENDHTML -->
|