ldapentry.xml

ldapentry.xml ÆÄÀÏÀº ÀÌÀü ¹öÀü WebSphere Commerce¿¡¼­ »ç¿ëµÇ´Â ldapmap.xml ÆÄÀÏÀ» ´ëüÇÕ´Ï´Ù. ÀÌÀü¿¡ »ç¿ëµÇ´ø ldapmap.xml ÆÄÀÏÀÇ ÄÁÅÙÃ÷°¡ ldapentry.xml ÆÄÀÏ·Î Àü¼ÛµÇ¾ú´ÂÁö È®ÀÎÇϽʽÿÀ. ldapentry.xml ÆÄÀÏÀº °¡Àå °øÅëÀûÀ¸·Î »ç¿ëµÇ´Â Çʵ忡 ´ëÇÑ ±âº» ¸ÊÇÎÀ» Á¦°øÇÕ´Ï´Ù. ±âº» ½ºÅ°¸¶ ¸ÊÇÎÀÇ LDAP ¼Ó¼ºÀº ±âº» »ç¿ëÀÚ ¿ÀºêÁ§Æ® Ŭ·¡½º(person, organizationalPerson, inetOrgPerson ¹× ePerson)¿Í ±âº» Á¶Á÷ ¿£Æ¼Æ¼ ¿ÀºêÁ§Æ® Ŭ·¡½º(organization ¹× organizationalUnit)¸¦ ±âÁØÀ¸·Î ÇÕ´Ï´Ù. ÀÌ·¯ÇÑ objectclasses´Â WebShere Commerce¿¡¼­ Áö¿øµÇ´Â ¸ðµç LDAP ¼­¹ö¿¡ ´ëÇØ Á¤Àǵ˴ϴÙ. ±âº» ½ºÅ°¸¶ ¸ÊÇÎÀ» À̵é objectclasses ÀÌ»óÀ¸·Î È®ÀåÇÏ·Á¸é ½ºÅ°¸¶ È®ÀåÀÌ LDAP ¼­¹ö¿¡¼­ ¸ÕÀú ¼öÇàµÇµµ·Ï ÇϽʽÿÀ. ±×·¯¸é, »õ ¼Ó¼ºÀÌ ldapentry.xml ÆÄÀÏ¿¡ À§Ä¡µË´Ï´Ù. WebShere Commerce ³»¿¡¼­ ³»ºÎÀûÀ¸·Î »ý¼ºµÈ Ű, USERS Å×À̺íÀÇ Lastsession°ú °°ÀÌ ÀÚÁÖ º¯°æµÇ´Â µ¥ÀÌÅÍ¿Í °°Àº ¼Ó¼ºÀº Á¸¼Ó½ÃŰÁö ¾ÊÀº °ÍÀÌ ÁÁ½À´Ï´Ù.

LDAP ¼Ó¼º¿¡ ´ëÇÑ Á¤º¸´Â www.as400.ibm.com/ldap/schema »çÀÌÆ®¸¦ ÂüÁ¶ÇϽʽÿÀ.

<?xml version="1.0"?>
<!DOCTYPE ldapentry SYSTEM "ldapentry.dtd">
<ldapentry>
    <entry entryName="User">
        <ldapsetting> 
            <ldaprdn rdnName="uid" keyAttrName="logonId" keyObjName="UserRegistry"/>
            <ldapocs objClass="top;person;organizationalPerson;inetOrgPerson"/>
            <ldapbase defaultBase="o=Default Organization,o=Root Organization" searchBase="o=Root Organization"/>
        </ldapsetting>
        <ldapmap>
            <map>
                <objectAttribute attrName="logonPassword"/>
                <ldapAttribute name="userPassword" operation="replace" flow="wcsToLdap"/>
            </map>
            <map>
                <objectAttribute attrName="lastName"/>
                <objectAttribute attrName="firstName"/>
                <objectSeparator attrSeparator="/"/>
                <ldapAttribute name="cn" operation="replace" flow="wcsToLdap"/>
            </map>
            <map>
                <objectAttribute attrName="lastName"/>
                <ldapAttribute name="sn" operation= "replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="firstName"/>
                <ldapAttribute name="givenName" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="phone1"/>
                <ldapAttribute name="homePhone" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="zipCode"/>
                <ldapAttribute name="postalCode" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="address1"/>
                <objectAttribute attrName="address2"/>
                <objectAttribute attrName="address3"/>
                <objectSeparator attrSeparator="/"/>
                <ldapAttribute name="postalAddress" operation="replace" flow="bothDirections"/>
            </map>
        </ldapmap>
    </entry>
    <entry entryName="Organization">
        <ldapsetting> 
            <ldaprdn rdnName="o" keyAttrName="orgEntityName" keyObjName="Organization"/>
            <ldapocs objClass="top;organization"/>
            <ldapbase defaultBase="o=Root Organization" searchBase="o=Root Organization"/>
        </ldapsetting>
        <ldapmap>
            <map>
                <objectAttribute attrName="businessCategory"/>
                <ldapAttribute name="businessCategory" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="description"/>
                <ldapAttribute name="description" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="address1"/>
                <objectAttribute attrName="address2"/>
                <objectAttribute attrName="address3"/>
                <objectSeparator attrSeparator="/"/>
                <ldapAttribute name="postalAddress" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="phone1"/>
            <ldapAttribute name="telephoneNumber" operation="replace" flow="bothDirections"/>
            </map>
        </ldapmap>
    </entry>
        <entry entryName="OrganizationalUnit">
        <ldapsetting> 
            <ldaprdn rdnName="ou" keyAttrName="orgEntityName" keyObjName="Organization"/>
            <ldapocs objClass="top;organizationalUnit"/>
            <ldapbase defaultBase="o=Root Organization" searchBase="o=Root Organization"/> 
        </ldapsetting>
        <ldapmap>
            <map>
                <objectAttribute attrName="businessCategory"/>
                <ldapAttribute name="businessCategory" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="description"/>
                <ldapAttribute name="description" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="address1"/>
                <objectAttribute attrName="address2"/>
                <objectAttribute attrName="address3"/>
                <objectSeparator attrSeparator="/"/>
                <ldapAttribute name="postalAddress" operation="replace" flow="bothDirections"/>
            </map>
            <map>
                <objectAttribute attrName="phone1"/>
                <ldapAttribute name="telephoneNumber" operation="replace" flow="bothDirections"/>
            </map>
        </ldapmap>
    </entry>
</ldapentry>

ldapentry.xml ÆÄÀÏÀÇ Æ÷¸ËÀº ´ÙÀ½°ú °°½À´Ï´Ù.

entry
Ç׸ñ ¿ä¼Ò´Â ¸ÊÇÎÀÌ ¾î´À ±¸¼º¿ø À¯Çü¿¡ ´ëÇÑ °ÍÀÎÁö¸¦ ½Äº°ÇÕ´Ï´Ù. ¿Ã¹Ù¸¥ °ªÀº User, Organization ¶Ç´Â OrganizationalUnitÀÔ´Ï´Ù.
ldapsetting - ldaprdn - rdnName
¾î´À LDAP ¼Ó¼ºÀÌ RDN ¼Ó¼ºÀÎÁö¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
ldapsetting - ldaprdn - keyAttrName
¾î´À WebSphere Commerce ¼Ó¼ºÀÌ RDN ¼Ó¼º¿¡ ¸ÊÇεǴÂÁö¸¦ ÁöÁ¤ÇÕ´Ï´Ù. »ç¿ëÀÚÀÎ °æ¿ì, ¼Ó¼º À̸§Àº UserRegistrationAdd ¸í·ÉÀÇ ±¸¹®¿¡ ¹®¼­È­µÇ¾î Àִ Ư¼º À̸§°ú »óÀÀÇÕ´Ï´Ù. ¼Ó¼º À̸§Àº ´ë¼Ò¹®ÀÚ°¡ ±¸ºÐµË´Ï´Ù. OrgEntityAdd ¸í·ÉÀÌ »ç¿ëµÇ¾î¾ß ÇÏ´Â Á¶Á÷ ¹× Á¶Á÷ ´ÜÀ§ÀÇ °æ¿ì¿Í À¯»çÇÕ´Ï´Ù.
ldapsetting - ldaprdn - keyObjName
keyAttrName¿¡ ÁöÁ¤µÈ WebSphere Commerce ¼Ó¼ºÀÌ ¹ß°ßµÉ ¼ö ÀÖ´Â WebSphere Commerce ¾×¼¼½º beanÀ» ÁöÁ¤ÇÕ´Ï´Ù.
ldapsetting - ldapocs - objClass
LDAP Ç׸ñÀ» ÀÛ¼ºÇÏ´Â µ¥ »ç¿ëµÇ´Â LDAP ¿ÀºêÁ§Æ® Ŭ·¡½º¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
ldapsetting - ldapbase - defaultBase
RDNÀÌ ·Î±×¿Â¿¡ »ç¿ëµÉ °æ¿ì WebSphere Commerce°¡ ·Î±×¿Â Áß »ç¿ëÀÚ¸¦ °Ë»öÇÏ´Â ÃÖÃÊ °Ë»ö ±âÁØ DNÀ» ÁöÁ¤ÇÕ´Ï´Ù. Á¶Á÷ ¿£Æ¼Æ¼ÀÇ °æ¿ì, defaultBase´Â WebSphere Commerce°¡ ÇÊ¿äÇÒ ¶§¸¶´Ù Á¶Á÷ ¿£Æ¼Æ¼¸¦ °Ë»öÇÏ´Â ÃÖÃÊ °Ë»ö ±âÁØ DNÀ» ÁöÁ¤ÇÕ´Ï´Ù.
ldapsetting - ldapbase - searchBase
WebSphere Commerce°¡ »ç¿ëÀÚ ¹× Á¶Á÷ ¿£Æ¼Æ¼¸¦ °Ë»öÇÏ´Â ³ª¸ÓÁö ±âº» DNÀ» ÁöÁ¤ÇÕ´Ï´Ù.
map -objectAttribute - attrName
WebSphere Commerce ¼Ó¼º À̸§. »ç¿ëÀÚÀÎ °æ¿ì, ¼Ó¼º À̸§Àº UserRegistrationAdd ¸í·ÉÀÇ ±¸¹®¿¡ ¹®¼­È­µÇ¾î Àִ Ư¼º À̸§°ú »óÀÀÇÕ´Ï´Ù. ¼Ó¼º À̸§Àº ´ë¼Ò¹®ÀÚ°¡ ±¸ºÐµË´Ï´Ù. OrgEntityAdd ¸í·ÉÀÌ »ç¿ëµÇ¾î¾ß ÇÏ´Â Á¶Á÷ ¹× Á¶Á÷ ´ÜÀ§ÀÇ °æ¿ì¿Í À¯»çÇÕ´Ï´Ù.
map -ldapAttribute - name
attrName¿¡ ÁöÁ¤µÈ WebSphere Commerce ¼Ó¼º¿¡ ¸ÊÇ뵃 LDAP ¼Ó¼ºÀÇ À̸§
map -ldapAttribute - flow
¼Ó¼º°ªÀ» LDAP¿¡¼­ Àоî¿À´ÂÁö, LDAP¿¡ ÀÛ¼ºµÇ´ÂÁö ¶Ç´Â ±× µÑ´ÙÀÎÁö¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ¿Ã¹Ù¸¥ °ªÀº ldapToWcs, wcsToLdap ¶Ç´Â bothDirectionsÀÔ´Ï´Ù. 
map -ldapAttribute - operation
LDAPÀÇ ¼Ó¼º°ªÀ» ¾î¶»°Ô ¼öÁ¤ÇÒ °ÍÀÎÁö ¿©ºÎ¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ¿Ã¹Ù¸¥ °ªÀº replace ¶Ç´Â addÀÔ´Ï´Ù. replace °ªÀº ÇöÀç »ç¿ëÀÚ Á¤º¸´Â Á¦°øµÈ »õ Á¤º¸·Î °»½ÅÇÕ´Ï´Ù(¿¹: ±âÁ¸ ÀüÈ­ ¹øÈ£¸¦ »õ ¹øÈ£·Î ¹Ù²Ù±â). add °ª¿¡´Â »ç¿ëÀÚ¿¡ ´ëÇÑ ´Ù¸¥ Ç׸ñÀÌ Æ÷ÇԵ˴ϴÙ(¿¹¸¦ µé¾î, ÇöÀç »ç¿ëÀÚ Á¤º¸¿¡ »õ ÀüÈ­ ¹øÈ£¸¦ Ãß°¡ÇÏ¸é »ç¿ëÀÚ ÀüÈ­ ¹øÈ£ ¸ñ·ÏÀÌ ¸¸µé¾îÁý´Ï´Ù). 
map - objectSeparator - attrSeparator
º¹¼ö WebSphere Commerce ¼Ó¼ºÀ» ´ÜÀÏ LDAP ¼Ó¼º¿¡ ÀúÀå ¶Ç´Â °Ë»öÇÒ ¶§ »ç¿ëµÇ´Â ºÐ¸®ÀÚ ¹®ÀÚ

°ü·Ã °³³ä

°ü·Ã ŽºÅ©

°ü·Ã °³³ä(1292¹ÙÀÌÆ®)

IBM copyright