Total Pageviews

Saturday, September 13, 2014

simple OIM purge logs command echo > logilename

 use

echo > logfilename

to purge oim log file

echo > oim_server1.log


you may want to take a backup before purging them. 

 

differenct between DN and RDN in LDAP



All entries stored in an LDAP directory have a unique "Distinguished Name," or DN. The DN for each LDAP entry is composed of two parts: the Relative Distinguished Name (RDN) and the location within the LDAP directory where the record resides.
The RDN is the portion of your DN that is not related to the directory tree structure. Most items that you'll store in an LDAP directory will have a name, and the name is frequently stored in the cn (Common Name) attribute. Since nearly everything has a name, most objects you'll store in LDAP will use their cn value as the basis for their RDN. If I'm storing a record in LDAP, I'll be using cn=shahbaz as the RDN of my entry.


cn=shahbaz,ou=employee,dc=orasystems,dc=com

RDN is cn=shahbaz

full DN is
cn=shahbaz,ou=employee,dc=orasystems,dc=com
 

find and delete old logfiles or find and compress old logfiles command in linux

below is the command to find and delete old logfiles older than 7 days.
 you need to the same directory to run this command or you can specify at the beginning to CD to that directory and run this command in a shell script.


find . ! -mtime -7 | while read fname
do
if [ -f $fname ]; then
rm $fname
fi
done

find and compress command. compress files older than 3 days

find . ! -mtime -3 |while read fname
do
if [ -f $fname ]; then
gzip $fname
fi
done

OID replication error gslrcfdReadReplDnPswd:Error reading repl passwd or replicaton password change options


following Errors
gslrcfdReadReplDnPswd:Error reading repl passwd
gslrcfcReadReplConfig:Error found.
Failed to read replication configuration information.
Reason:
The ReplBind credential in the replication wallet ORACLE_INSTANCE/OID/admin/oidpwdrORACLE_SID is corrupt or invalid. That is, the password stored in the wallet is not the same as the password that is stored in the directory, or the wallet does not exist. This causes the replication bind to fail and the replication server to exit with an error.
You might see messages similar to this example in the file oidrepldXX.log:
 

Solution
Use remtool to fix the replication bind credential in the replication wallet or to synchronize between Oracle Internet Directory and the replication wallet.
  • remtool -pchgpwd changes the password of the replication dn of a replica. Use this option if you know the current replication DN password stored in the directory and you want to change it both in the directory and in the wallet.
  • remtool -presetpwd resets the password or the replication dn of a replica. Use this option if you know the current replication DN password stored in the directory and you want to change it both in the directory and in the wallet.
  • remtool -pchgwalpwd changes password of replication dn of a replica only in the wallet. Use this option if you know the replication DN password stored in the directory but you are not sure whether the wallet has the correct password or you want to create the wallet file.
All of these options create a wallet if one does not already exist.

OID error PS2-0332: Cannot create spool file Solution: ignore this message



Problem
When you use the Oracle Application Server tool RepCA to load Oracle Internet Directory schema into an existing Oracle 10.1.0.3 Database, you might see the following error message in the ORACLE_INSTANCE/diagnostics/logs/OID/tools/repca*log file:
SP2-0332: Cannot create spool file.

Solution
This error message can be ignored.

OID purge changelog fail or hang issue using comand remtool


oracle documentation about purging changelog fail issue

Problem
A remtool query such as
remtool -pdispqstat -v -bind host:port 
hangs. During the hang, attempts to bind to the server with other tools might fail.

Solution
If there is a large backlog of changelogs waiting to be purged, the remtool search query runs for a long time. Ensure that changelog purging is configured appropriately for your environment. See "Change Log Purging".
You can also increase the number of worker threads so that other tools can bind while remtool is running the query. See "Attributes of the Instance-Specific Configuration Entry" and the Oracle Internet Directory chapter in Oracle Fusion Middleware Performance and Tuning Guide.

Friday, September 12, 2014

OID or LDAP difference posixGroup vs. groupofNames


In OID or LDAP  there are two ways of grouping users.

The objectClass posixGroup
The objectClass groupofNames.

posixGroup:  Uses the memberUid attribute which contains only the value of the UID of a users full DN. is user is part of this group attribute you need to match is only UID of the user
  For example:
cn=mygroup,ou=Groups,dc=example,dc=com
memberUID: shahbazc


shahbazc is member of mygroup

groupofNames: Uses the member attribute which contains the full DN of the user. complete DN of the member is displayed.

 For example:

cn=myGroup,ou=Groups,dc=example,dc=com

 member: uid=testuser,ou=People,dc=example,dc=com