ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahy_5.4.0.1/rzahycopyattr.htm

102 lines
6.7 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<title>Directory Server (LDAP) - Copy an attribute</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rzahycopyattr"></a>
<h3 id="rzahycopyattr">Copy an attribute</h3>
<p>Use either of the following methods to copy an attribute. The Web administration
tool is the preferred method.</p>
<p><span class="bold">Web administration</span></p>
<p>If you have not done so already, expand <span class="bold">Schema
management</span> in the navigation area, then click <span class="bold">Manage attributes</span>. To copy an attribute:</p>
<ol type="1">
<li>Click the radio button next to the attribute that you want to
copy.</li>
<li>Click <span class="bold">Copy</span>.</li>
<li>Change the <span class="bold">Attribute name</span>. The default name is the
copied attribute name appended with the word COPY. For example <span class="bold">tempID</span> is copied as <span class="bold">tempIDCOPY</span>.</li>
<li>Change a <span class="bold">Description</span> of the attribute, for example, <span class="bold">The ID number assigned to a temporary employee</span>.</li>
<li>Change the <span class="bold">OID</span>. The default OID is the
copied attribute OID appended with the word COPYOID. For example <span class="bold">tempID-oid</span> is copied as <span class="bold">tempID-oidCOPYOID</span>.</li>
<li>Select a <span class="bold">Superior attribute</span> from
the drop-down list. The superior attribute determines the attribute from which
properties are inherited.</li>
<li>Select a <span class="bold">Syntax</span> from the drop-down list.
See <a href="rzahysyntax.htm#rzahysyntax">Attribute syntax</a> for additional information about syntax.</li>
<li>Enter a <span class="bold">Attribute length</span> that
specifies the maximum length of this attribute. The length is expressed as
the number of bytes.</li>
<li>Select the <span class="bold">Allow multiple values</span> checkbox to enable the attribute to have multiple values.</li>
<li>Select a matching rule from the each of the drop-down menus for equality,
ordering, and substring matching rules. See the <a href="rzahymatchrules.htm#rzahymatchrules">Matching rules</a> for
a complete listing of matching rules.</li>
<li>Click the <span class="bold">IBM extensions</span> tab to change additional
extensions for the attribute, or click <span class="bold">OK</span> to apply your
changes or click <span class="bold">Cancel</span> to return to <span class="bold">Manage attributes</span> without making any changes.</li>
<li>At the <span class="bold">IBM extensions</span> tab:
<ul>
<li>Change the <span class="bold">DB2 table name </span>. The server
generates the DB2 table name if this field is left blank. If you enter a DB2
table name, you must also enter a DB2 column name.</li>
<li>Change the <span class="bold">DB2 column name</span>. The server
generates the DB2 column name if this field is left blank. If you enter a
DB2 column name, you must also enter a DB2 table name.</li>
<li>Change the <span class="bold">Security class</span> by selecting <span class="bold">normal</span>, <span class="bold">sensitive</span>,
or <span class="bold">critical</span> from the drop-down list.</li>
<li>Change the <span class="bold">Indexing rules</span> by selecting
one or more indexing rules. See <a href="rzahyindexrules.htm#rzahyindexrules">Indexing rules</a> for additional
information about indexing rules.
<a name="wq321"></a>
<div class="notetitle" id="wq321">Note:</div>
<div class="notebody">At a minimum, it is recommended
that you specify Equal indexing on any attributes that are to be used in search
filters.</div></li></ul></li>
<li>Click <span class="bold">OK</span> to apply your changes
or click <span class="bold">Cancel</span> to return to <span class="bold">Manage attributes</span> without making any changes.</li></ol>
<a name="wq322"></a>
<div class="notetitle" id="wq322">Note:</div>
<div class="notebody">If you clicked <span class="bold">OK</span> on
the <span class="bold">General</span> tab without adding any extensions,
you can add or change extensions by editing the new attribute.</div>
<p><span class="bold">Command line</span></p>
<p>View the attributes contained in the schema issue the command:</p>
<pre class="xmp">ldapsearch -b cn=schema -s base objectclass=* attributeTypes IBMAttributeTypes</pre>
<p>Select the attribute that you want to copy. Use an editor to change the
appropriate information and save the changes to &lt;<span class="italic">filename</span>>. Then issue the following command:</p>
<pre class="xmp">ldapmodify -D &lt;<span class="italic">adminDN</span>> -w &lt;<span class="italic">adminPW</span>> -i &lt;<span class="italic">filename</span>>
</pre><p class="indatacontent">where &lt;<span class="italic">filename</span>>contains:</p>
<pre class="xmp">dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( &lt;<span class="italic">mynewAttribute-oid</span>> NAME '&lt;<span class="italic">mynewAttribute</span>>' DESC '&lt;<span class="italic">A new
attribute I copied for my LDAP application</span>> EQUALITY 2.5.13.2
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE userApplications )
-
add: ibmattributetypes
ibmattributetypes: ( myAttribute-oid DBNAME ( 'myAttrTable' 'myAttrColumn' )
ACCESS-CLASS normal LENGTH 200 )</pre>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>