| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <!-- --- 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 --- -->
- <HEAD><TITLE>User Management</TITLE>
- <SCRIPT language=JavaScript>
- function resetForm()
- {
- document.addForm.add_ou.focus();
- }
- function submitAdd()
- {
- var theForm = document.addForm;
- var dn, dnSuffix, i, e, prod;
- if ( theForm.add_ou.value.length == 0 ) {
- alert( 'Please provide a name for the org. unit.' );
- theForm.add_ou.focus();
- return;
- }
- dn = 'ou=' + theForm.add_ou.value;
- if ( theForm.CrLoc.type == 'hidden' ) {
- dnSuffix = unescape( theForm.CrLoc.value );
- } else {
- dnSuffix = unescape(
- theForm.CrLoc.options[ theForm.CrLoc.selectedIndex ].value );
- }
- if ( dnSuffix.length > 0 ) {
- dn += ', ' + dnSuffix;
- }
- theForm.dn.value = escape(dn);
- // execute selected product-specific default functions
- for ( i = 0; i < theForm.elements.length; ++i ) {
- e = theForm.elements[ i ];
- if ( e.type == 'checkbox' &&
- e.name.substring( 0, 17 ) == 'product_checkbox_' &&
- e.checked ) {
- prod = e.name.substring( 17, e.name.length );
- if ( !eval( 'product_setdefaults_' + prod + '(theForm)' )) {
- return; // submit vetoed by product
- }
- }
- }
- theForm.submit();
- }
- </SCRIPT>
- </HEAD>
- <!-- BODY "onLoad='resetForm()'" -->
- <CENTER><TABLE BORDER="2" CELLPADDING="10" WIDTH="100%">
- <TR><TD ALIGN="center" WIDTH="100%">
- <FONT SIZE="+2"><B>New Organizational Unit</B></FONT>
- </TD></TR></TABLE></CENTER>
- <!-- DS_LAST_OP_INFO "prefix=<P><FONT SIZE=%22%2B1%22>The organizational unit " "suffix=</FONT><HR>" -->
- <FORM METHOD="POST" ACTION="domodify" NAME="addForm">
- <INPUT TYPE="hidden" NAME="completion_javascript" VALUE="document.location.href=\'genscreen?dscrou&info=\' + escape(dsmodify_info)">
- <INPUT TYPE="hidden" NAME="changetype" VALUE="add">
- <INPUT TYPE="hidden" NAME="dn" VALUE="">
- <INPUT TYPE="hidden" NAME="add_objectClass" VALUE="top">
- <INPUT TYPE="hidden" NAME="add_objectClass" VALUE="organizationalUnit">
- <INPUT TYPE="hidden" NAME="quiet" VALUE="true">
- <DIV ALIGN="right"><FONT SIZE="-1">* Indicates a required field</FONT></DIV>
- <TABLE CELLSPACING="0" BORDER="0">
- <TR><TD ALIGN="right"><b>* Unit Name:</b></TD>
- <TD><INPUT type="text" name="add_ou" value="" size=32></TD></TR>
- <TR><TD ALIGN="right"><b>Description:</b></TD>
- <TD><INPUT type="text" name="add_description" value="" size=32></TD></TR>
- <!-- INCLUDESET dscrou -->
- <!-- DS_LOCATIONPOPUP "name=CrLoc" "prefix=<TR><TD ALIGN=%22right%22><b>Add Organizational Unit To:</b></TD><TD>" "suffix=</TD></TR>" "rootname=the top of the directory" -->
- </TABLE>
- <P>
- <CENTER><TABLE BORDER="2" WIDTH="100%">
- <TR>
- <TD WIDTH="33%" ALIGN="center">
- <INPUT TYPE="button" VALUE=" Create Organizational Unit "
- onClick="submitAdd()"></TD>
- <TD WIDTH=33% ALIGN=center><INPUT TYPE="reset" VALUE=" Reset "
- onClick="resetForm()"></TD>
- <TD WIDTH=33% ALIGN=center>
- <!-- HELPBUTTON "DSCROU" -->
- </TD>
- </TR></TABLE></CENTER>
- </FORM>
- <!-- ENDHTML -->
|