Today I wanted to make an shell script that checks if an attribute of an user in the OID had a specific value. I tried to make an ldapsearch statement but it failed with the error:
DSA Is Unwilling To Perform
ldap_search: additional info: Function Not Implemented
I found out that it is not possible to search on an uncataloged (unindexed) attribute.
This can be fixed by:
Create an index on the attribute used in the search using catalog.
For this example:
$ORACLE_HOME/ldap/bin/catalog connect="[ORACLE_SID_METADATA REPOSITORY]" add=true attribute="[SEARCH ATTRIBUTE]"
Output:
This tool can only be executed if you know database user password for OID
Enter OID Password ::
Password of het orcladmin user should be entered now!
Restart the OID server.
Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.
Wednesday, July 29, 2009
Subscribe to:
Post Comments (Atom)
Nice post !
ReplyDeleteI was facing the same problem while search in PL/SQL code.
I found ur blog after resolving the issue.
It could have saved me 1 hour.
Just what I need - thanks!
ReplyDeleteExcellent.
ReplyDeleteThanks! ur post helped me out a lot
ReplyDeleteAny changes to be made on shell script please post here. The only way I know is by creating a Index
ReplyDeletesap testing tools