OUD Load Generating Tool

Advertisements

OAM – OUD as Identity Store

dn: ou=people,dc=example,dc=com
changetype: add
objectclass: top
objectclass: organizationalUnit
ou: people

dn: ou=Groups, dc=example,dc=com
objectClass: top
objectClass: organizationalunit
ou: Groups

dn: cn=oam_admin,ou=Groups, dc=example,dc=com
description: Administrators of the OAM Server
objectClass: top
objectClass: groupofuniquenames
uniqueMember: uid=vishal,ou=people,dc=example,dc=com
cn: oam_admin

dn: uid=vishal,ou=people,dc=example,dc=com
objectclass: top
objectclass: person
objectclass: inetOrgPerson
objectclass: organizationalperson
objectclass: orcluser
objectclass: orcluserv2
orclisenabled: ENABLED
orcltimezone: America/New_York
preferredlanguage: en-US
uid: vishal
givenname: Vishal
cn: Vishal Raj
sn: Raj
telephonenumber: 752-330-4301
employeenumber: 620451
mail: Vishal.Raj@mycompany.com
userpassword: Welcome1
postaladdress: 1865 Cliff Flds
l: Brooktondale
st: DE
postalcode: 98662-7671
title: Administrator

# Mbean Issue :

http://anotherdatabaseblog.blogspot.in/

Configuring Oracle Unified Directory as an Identity Store for Access Manager 11gR2 (11.1.2)

https://blogs.oracle.com/sduloutr/entry/using_oud_as_a_weblogic
http://oracleiam.com/configure-oid-as-primary-identity-store-in-oam11g-r2-ps2/

OUD Model ldif

$ cat > oud_model.ldif



dn: dc=example,dc=com
changetype: add
objectclass: top
objectclass: domain

dn: ou=Groups,dc=example,dc=com
changetype: add 
objectclass: top 
objectclass: groupOfUniqueNames 
cn: Groups

dn: ou=customers,dc=example,dc=com
changetype: add
objectclass: top
objectclass: groupOfUniqueNames
cn: customers

OUD Backup Script

Here is the output :


OUD Script Log Purge:: Purging the OUD Backup Script Logs older than 7 days
OUD Backup Purge:: Purging the OUD LDIF Backup older than 7 days
OUD Backup Purge:: Purging the OUD Binary Backup older than 7 days
OUD Backup:: Script Start -- 20160526_0854
Export task 20160526085425844 scheduled to start immediately
[26/May/2016:08:54:25 +0000] severity="NOTICE" msgCount=0 msgID=9896349 message="Export task 20160526085425844 started execution"
[26/May/2016:08:54:25 +0000] severity="INFORMATION" msgCount=1 msgID=10487422 message="Exporting to /tmp/oud-bkup/ldif/20160526_085421.ldif"
[26/May/2016:08:54:25 +0000] severity="INFORMATION" msgCount=2 msgID=8388850 message="The export will be done in Entry ID Order"
[26/May/2016:08:54:25 +0000] severity="NOTICE" msgCount=3 msgID=8847447 message="Exported 22 entries and skipped 0 in 0 seconds (average rate 1466.7/sec)"
[26/May/2016:08:54:25 +0000] severity="NOTICE" msgCount=4 msgID=9896350 message="Export task 20160526085425844 finished execution"
Export task 20160526085425844 has been successfully completed
+---  OUD LDIF Backup Verification:: Listing the backup ----+
-----
20160526_085421.ldif
-----
[26/May/2016:08:54:33 +0000] category=TOOLS severity=NOTICE msgID=10944792 msg=Starting backup for backend virtualAcis
[26/May/2016:08:54:33 +0000] category=JEB severity=NOTICE msgID=8847446 msg=Archived: 00000000.jdb
[26/May/2016:08:54:33 +0000] category=TOOLS severity=NOTICE msgID=10944792 msg=Starting backup for backend tasks
[26/May/2016:08:54:33 +0000] category=TOOLS severity=NOTICE msgID=10944792 msg=Starting backup for backend schema
[26/May/2016:08:54:33 +0000] category=TOOLS severity=NOTICE msgID=10944792 msg=Starting backup for backend userRoot
[26/May/2016:08:54:33 +0000] category=JEB severity=NOTICE msgID=8847446 msg=Archived: 00000000.jdb
[26/May/2016:08:54:33 +0000] category=TOOLS severity=NOTICE msgID=10944792 msg=Starting backup for backend replicationChanges
[26/May/2016:08:54:33 +0000] category=JEB severity=NOTICE msgID=8847446 msg=Archived: 00000000.jdb
[26/May/2016:08:54:33 +0000] category=TOOLS severity=NOTICE msgID=10944795 msg=The backup process completed successfully
+--- OUD Binary Backup Verification:: Listing the backup ----+
-----
20160526_085421
-----
OUD Backup :: Script End -- 20160526_0854
Elapsed Time ::  00h:00m:12s

OUD – Script to check replication delay



#!/bin/bash

CMD="dsreplication --advanced status --hostname localhost --port 4444 --adminUID admin --adminPasswordFile /tmp/pwd.txt --trustAll --no-prompt -b cn=oraclecontext,dc=example,dc=com --dataToDisplay missing-changes"

if [[ "$($CMD | awk /4444/'{ print $3 }')" -gt 0 ]]; then
  echo " ==  Delay in Replication == "
  echo " == Please execute the following command for detailed replication status =="
  echo "dsreplication status --hostname localhost --port 4444 --adminUID admin --adminPasswordFile ~/pwd.txt --trustAll --no-prompt"
fi

 

OUD – Slow Search For Virtual Static Group

# Issue :

A search for virtual static group like this will take lot of time :


$ ldapsearch -D "cn=Directory Manager" -w X -b cn=ex,dc=example,dc=com (uniquemember=uid=user.1,ou= People,dc=x,dc=com)

# Soln:

Please enable the following property:


ds-cfg-allow-retrieving-membership : true

Ref: Bug 17568241 – SEARCHING FOR A VIRTUAL STATIC GROUP CAN TAKE A LONG TIME