Ldapsearch returning multiple attributes with wildcard?
I'm running DSEE 6.2 and I'm wondering if it's possible to return multiple attributes in an ldapsearch request based on the attribute name.
For instance, I have corpXattr1, corpXattr2, corpXattr3 in my directory, and I want to return all attributes for a particular user that start with corpX* .
I haven't found a way of doing this, but maybe somebody can help?
It is not possible to specify patterns (or wildcards) in the list of attributes that can be returned by the Directory Server.
This is not part of the LDAPv3 specification.
Regards,
Ludovic.
Similar Messages
-
How can I return multiple values with PL/SQL Web Services
Hi,
I'm new to developping Web Services. I'm doing some tests with JDeveloper and OC4J on my local machine with a Web Services based on a PL/SQL function within a package. Right now that function only returns one value. So the xml response only has one output.
I'd like to know how can I return multiple values with my PL/SQL Web Service. For example, if I want to return an employee's name and id? And that the xml contains two output : <employee>, <empid>?
Reginald
ps : I have searched the forum and I couldn't find an answer to this question, if that has been discussed AND answered before, can you please post the link? ThanksAlright, I actually found my answer. Since this was asked I think as a followup somewhere else I'll give my answer.
It is very simple, all you have to do is create an Object Type and then Return that object type. After that, JDeveloper will take care of everything and you will have an xml response with multiple values. Here
{color:#ff0000}
create or replace TYPE person AS OBJECT
( id_interv number,
first_name VARCHAR2(50),
last_name VARCHAR2(50),
date_birth date
);{color}
Then your function used in your Web Service should look something like this :
{color:#ff0000}
function info_emp (p_empno IN VARCHAR2) RETURN person AS
l_emp person := person(-1,'','','');
BEGIN
SELECT first_name
,last_name
,emp_no
INTO l_emp.first_name
,l_emp.last_name
,l_emp.emp_no
FROM emp
WHERE upper(emp_no) = upper (emp_no);
{color}
{color:#ff0000}
RETURN l_emp;
EXCEPTION WHEN NO_DATA_FOUND THEN
l_emp := person (-1,'n/a','n/a','n/a');
RETURN l_emp ;
END info_emp;{color}
{color:#ff0000}{color:#000000}After that, this is what the xml response looks like :{color}{color}
<first_name xsi:type="xsd:string">John</first_name>
<last_name xsi:type="xsd:string">Doe</last_name>
<emp_no xsi:type="xsd:string">0250193</emp_no> -
Revision: 889
Author: [email protected]
Date: 2008-03-21 13:08:05 -0700 (Fri, 21 Mar 2008)
Log Message:
Add test case for BLZ-82 where HttpService should return multiple headers with the same name.
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-82
Added Paths:
blazeds/trunk/qa/apps/qa-regress/remote/MultipleHeadersTest.jsp
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/proxyService/httpservice/MultiHe aderTest.mxmlHi again,
this may be old news to some people, but I just realized we can have the desired benefits I originally listed (encapsulation, reuse, maintainability, security) TODAY by using pipelined functions and using the table() function in Apex report region queries.
So the report query basically becomes, for example (if get_employees is a pipelined function)
select * from table(my_package.get_employees(:p1_deptno))
The only downside compared to a (weakly typed) sys_refcursor is that you have to define the type you are returning in your package spec (or as an SQL type). So it's a bit more coding, but it's still worth it for the other benefits it provides.
I like Apex even better now! :-)
- Morten -
Topic: Incorrect Tag:Multiple Attributes with Same Collection Type
I have an Object Type that contains multiple attributes with the same collection type. When I use OracleXML getXML to generate xml, the tag for all elements created for any of the matching types is the tag for the 1st of the similar attributes.
work_t_v is an object view of a relational schema
SQL> desc work_t_v
Name Null? Type
WORK_ID NUMBER(38)
TITLE_OF_WORK VARCHAR2(512)
MESH_HEADINGS MESH_HEADINGS_T
AUTHORS AUTHORS_T
COMMENT_ON WORK_REFERENCES_T
COMMENT_IN WORK_REFERENCES_T
ERRATUM_IN WORK_REFERENCES_T
REPUBLISHED_FROM WORK_REFERENCES_T
REPUBLISHED_IN WORK_REFERENCES_T
SQL> desc work_references_t
work_references_t TABLE OF WORK_REFERENCE_T
Name Null? Type
REFSOURCE VARCHAR2(255)
NOTE VARCHAR2(255)select
work.work_id,
work.title_of_work,
work.comment_on comment_on,
work.comment_in comment_in,
work.erratum_in erratum_in,
work.republished_from republished_from,
work.republished_in republished_in
from work_t_v work
where work_id = 99350984
results in tag of <comment_on> for all the elements built from the work_references_t type (i.e., there are no <comment_in>, <erratum_in>, <republished_from> or <republished_in> elements)
sample result is:
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [ErratumIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedFrom]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
The above xml should be:
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_IN>
<COMMENT_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentIn]</REFSOURCE>
</COMMENT_IN_ITEM>
</ERRATUM_IN>
<COMMENT_ON>
<ERRATUM_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [ErratumIn]</REFSOURCE>
</ERRATUM_IN_ITEM>
</ERRATUM_IN>
<REPUBLISHED_FROM>
<REPUBLISHED_FROM_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedFrom]</REFSOURCE>
</REPUBLISHED_FROM_ITEM>
</REPUBLISHED_FROM>
<REPUBLISHED_IN>
<REPUBLISHED_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedIn]</REFSOURCE>
</REPUBLISHED_IN_ITEM>
</REPUBLISHED_IN>bracketed portion [] is contained within the refsource string to indicate what type of reference it should be displayed as.
I also found that if I use the -withDTD parameter to include the dtd, the dtd includes the appropriate elements (comment_in, erratum_in, republished_from and republished_in). However, it incorrectly defines refsource and note multiple times (once for each WORK_REFERENCES_T attribute).
Are these known problems? Will they be fixed? I'm more concerned about the XML problem than the DTD problem.
Thanks! -- John Butler
nullUsing the version of XML SQL Utility that comes with the next XSQL Servlet release 0.9.8.6 I did the following:
create type foo as object (a number);
create type foolist as table of foo;
create view fooview
as select
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list1,
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list2
from dual;
When I request a "SELECT * FROM FOOVIEW"
through getXML I get:
<?xml version="1.0"?>
<ROWSET>
<ROW num="1">
<LIST1>
<LIST1_ITEM>
<A>800</A>
</LIST1_ITEM>
</LIST1>
<LIST2>
<LIST2_ITEM>
<A>800</A>
</LIST2_ITEM>
</LIST2>
</ROW>
</ROWSET>
So this appears fixed in the next code drop.
In the interim, I'll email you the new JAR file until (since it won't be on OTN for a few more days).
null -
Incorrect Tag:Multiple Attributes with Same Collection Type
I have an Object Type that contains multiple attributes with the
same collection type. When I use OracleXML getXML to generate
xml, the tag for all elements created for any of the matching
types is the tag for the 1st of the similar attributes.
work_t_v is an object view of a relational schema
SQL> desc work_t_v
Name Null? Type
WORK_ID NUMBER(38)
TITLE_OF_WORK VARCHAR2(512)
MESH_HEADINGS MESH_HEADINGS_T
AUTHORS AUTHORS_T
COMMENT_ON WORK_REFERENCES_T
COMMENT_IN WORK_REFERENCES_T
ERRATUM_IN WORK_REFERENCES_T
REPUBLISHED_FROM WORK_REFERENCES_T
REPUBLISHED_IN WORK_REFERENCES_T
SQL> desc work_references_t
work_references_t TABLE OF WORK_REFERENCE_T
Name Null? Type
REFSOURCE VARCHAR2(255)
NOTE VARCHAR2(255)
select
work.work_id,
work.title_of_work,
work.comment_on comment_on,
work.comment_in comment_in,
work.erratum_in erratum_in,
work.republished_from republished_from,
work.republished_in republished_in
from work_t_v work
where work_id = 99350984
results in tag of <comment_on> for all the elements built from
the work_references_t type (i.e., there are no <comment_in>,
<erratum_in>, <republished_from> or <republished_in> elements)
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[CommentIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[ErratumIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[RepublishedFrom]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[RepublishedIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
bracketed portion [] is contained within the refsource string to
indicate what type of reference it should be displayed as.
I also found that if I use the -withDTD parameter to include the
dtd, the dtd includes the appropriate elements (comment_in,
erratum_in, republished_from and republished_in). However, it
incorrectly defines refsource and note multiple times (once for
each WORK_REFERENCES_T attribute).
Are these known problems? Will they be fixed? I'm more
concerned about the XML problem than the DTD problem.
Thanks! -- John Butler
nullUsing the version of XML SQL Utility that comes with the next XSQL Servlet release 0.9.8.6 I did the following:
create type foo as object (a number);
create type foolist as table of foo;
create view fooview
as select
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list1,
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list2
from dual;
When I request a "SELECT * FROM FOOVIEW"
through getXML I get:
<?xml version="1.0"?>
<ROWSET>
<ROW num="1">
<LIST1>
<LIST1_ITEM>
<A>800</A>
</LIST1_ITEM>
</LIST1>
<LIST2>
<LIST2_ITEM>
<A>800</A>
</LIST2_ITEM>
</LIST2>
</ROW>
</ROWSET>
So this appears fixed in the next code drop.
In the interim, I'll email you the new JAR file until (since it won't be on OTN for a few more days).
null -
Multiple selection with wildcard in WAD
Hello,
How can I do filtering with multiple selection with wildcard in WAD 7 ?
We have this problem in two seperate situation. The first is in the parameter screen where we want to filer the output with two wildcard. The first one we can put on the field and then go to the selection screen but what about the other ????. The second situation is in the report when we want to filter one of the columns with wildcard.
I will appreciate if someone will open my eyes about this.
IlanHello,
you can use the * for wildcards in the BEx Web.
For example 37* -> 370000 up to 379999.
Buy,
André -
FTP - FCC - GUILDFTPd - Unable to pick up multiple files with Wildcard char
Hi All,
I am not sure if my issue is strange or i may be missing something here. I am using FTP - FCC and using GUILDFTPd to connect to my local machine. This is working perfect if i don't use wildcard characters in file name but if i use them it is not picking up files. I have green in Channel monitoring and polling as mentioned for every 60 Seconds.
I have tried both using/without using 'Advanced selection for source file' and also checked 'Adapter specific message attributes'. The same is working if i specify exact file name. By the way, i have tried using '*' and '?' as wildcard character.
Any idea or help in this regard is appreciated.I have tried with just basic. I mean, it works fine if i specify exact file name. The problem is only when i want to pick up multiple files using any wildcard character. No error in communication channel or in archive settings as the scenario working for one file without any wildcard.
However, i have changed to NFS and it is working good even with wildcard characters.
It seems there is a problem with GUILDFTPd which is not picking up files but no errror.
Any ideas are welcome. Thank you both for the responses. -
How to return multiple record with Oracle Native Web Service?
Dear all,
I would like to know that the oracle native web service can be able to return multiple records to client or not?
I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)
Thank and Regards,
ZenoniI successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
function get_employees (p_department_id in number) return clob
as
begin
return 'your_xml_string_here';
end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
- Morten
http://ora-00001.blogspot.com -
How to returns multiple data with function in varray?
Hi!
I have 3 rows in my table and i want the return in VARRAY, but
in my function bottom it works for only one row of my table.
I don't know how to have the return of values in 3 rows of my table,
it's possible to have multiple dimension in varray? Or another way for
having that? Because i read after in java code this result.
Now my result are :
RetVal(1)= 504053
RetVal(2)= 135058
RetVal(3)= 206734
I want like :
RetVal(1)= 504053 Melanie Brown California
RetVal(2)= 135058 John Smith Boston
RetVal(3)= 206734 Roy Smith New York
CREATE TYPE GPDEV.EMPARRAY is VARRAY(100) OF NUMBER
CREATE FUNCTION MyName RETURN EMPARRAY
AS
l_data EmpArray := EmpArray();
CURSOR c_emp IS SELECT MyTable
FROM MyRow
WHERE clientnumber is not null;
BEGIN
FOR MyTable IN c_emp LOOP
l_data.extend;
l_data(l_data.count) := MyTable.MyRow
END LOOP;
RETURN l_data;
END;
Thanks in advance for your help!
MelanieHere is one approach...
CREATE TYPE testType AS OBJECT (test_letter VARCHAR2(2), test_number NUMBER);
DECLARE
CURSOR cAAA IS
select 'a' test_letter, 1 test_number FROM DUAL UNION ALL
select 'b' test_letter, 2 test_number FROM DUAL UNION ALL
select 'c' test_letter, 3 test_number FROM DUAL;
TYPE vArray_testType is VARRAY(100) OF testType;
testArray vArray_testType:=vArray_testType();
y number:=0;
BEGIN
dbms_output.put('Adding items to varray...');
FOR rec in cAAA LOOP
y:=y+1;
testArray.extend;
testArray(y):= testType(
test_letter => rec.test_letter,
test_number=> rec.test_number);
END LOOP;
dbms_output.put_line('Done. ');
dbms_output.put_line('Print contents of varray...');
LOOP EXIT WHEN y = 0;
dbms_output.put_line(testArray(y).test_letter||' '||testArray(y).test_number);
y := y-1;
END LOOP;
dbms_output.put_line('END');
END; -
Return Multiple Items with One Lookup Value
Hi there,
Within my data set there are multiple values that I would like to return into a different table.
For example:
In the "players from australia" table I would like to search the main data set for the "AUS" tag in column B and then automatically display the names of those players.
There was something similar posted a few days ago Search sheet and return associated values for multiple matches and I tried to apply those formulas to my data but it didn't work...perhaps slightly different application of the function.
fyi: the "category" table is simply to add up the number of players from each country and return a numerical value, as opposed to the names. I also use it as the cell from which to determine which value to search and display, i.e. A2 for the AUS players to be displayed in the empty table.
Any help would be greatly appreciated!!
Ed.You could try something like this:
The formula in the Index column, copied down:
=B2&COUNTIF(B$1:B2,B2)
The formula in A2 of the Players From table, copied down and right:
=INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),)
To suppress the display of the red warning triangles, you can wrap that in IFERROR, like this:
=IFERROR(INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),),"")
This takes the value in row 1, appends the row number it's on less 1, and uses MATCH to find what row contains that value in the Index column of the other table. That row number is fed to INDEX, which returns the value from column A.
SG -
MDX filter multiple attributes with OR
The question is simple. I need a full list of Product (EnglishProductName, EnglishDescription, Class, Color,...) whose EnglishProductName like '%bike' OR EnglishDescription like '%bike%'. The "bike" has to be a parameter. How can I use
MDX to query AdventureWork? I tried using Having, it worked but slow.
SELECT NON EMPTY { } ON COLUMNS
, [DimProduct].[EnglishDescription].[EnglishDescription].ALLMEMBERS*[DimProduct].[EnglishProductName].[EnglishProductName].ALLMEMBERS
HAVING Instr([DimProduct].[EnglishDescription].currentmember.Properties( 'Member_Caption' ), "bike" ) > 0 OR
Instr([DimProduct].[EnglishProductName].currentmember.Properties( 'Member_Caption' ), "bike" ) > 0
on rows
FROM [Model]
Any help will be appreciated.This was beautiful. The key point was how to use the SET in Filter. I rewrote my real query, it's like this:
SELECT{ }
ONCOLUMNS,
[Recipient].[DataSource].[DataSource].
ALLMEMBERS
* [Recipient].[RecipientName].[RecipientName].
ALLMEMBERS
* [Recipient].[RecipientCreationDate].[RecipientCreationDate].
ALLMEMBERS
ONROWS
FROM(
SELECT(
filter(
([Recipient].[RecipientName].[RecipientName].
ALLMEMBERS* [Recipient].[RecipientAlternateName].[RecipientAlternateName].ALLMEMBERS)
,Instr( [Recipient].[RecipientAlternateName].
CURRENTMEMBER.Properties(
'Member_Caption'),
"Roger") >
0 or
Instr([Recipient].[RecipientAlternateName].
CURRENTMEMBER.Properties(
'Member_Caption'),
"roger") >
0
ONcolumns
FROM
[EAS Report Model]
It really worked. It took 1 minute and 18 seconds. The entity volume is 3 million. Is there any way can speedup little bit?
Thanks a bunch, Sorna, you are awesome. -
Returning multiple values with SELECT FOR LOOP
Oracle EE 11gR1
PL/SQL
OEL 5.8
===========
Would like to know how to do the following?
for x, y in (select name, street
from employees
where hire_date < sysdate - 100)
loop
In other words, is there a way to handle 2 (or more) values in a SELECT FOR LOOP structure? If not, then how to accomplish the same task.
The above does not work of course. :-)
Appreciate any and all advice.Yes, just have one name in your for loop and that becomes the equivalent of a table name and reference the columns as that name.column name
for t in (select name, street
from employees
where hire_date < sysdate - 100)
loop
dbms_output.put_line('name = '||t.name);
dbms_output.put_line('street = '||t.street);
end loop; -
Get Variant Attribute Should Search for and return multiple values based on RegEx
I am using Variants as lookup tables (see this article):
Using Variant Attributes to Build a Dictionary or Look-up Table
I would like to be able to use some sort of wildcard to return multiple results from the Get Variant Attribute VI (all results are of the same type, and I don't know the exact names of all the results - those two points make this idea distinct from this idea: Set/Get Variant Attribute for Multiple Attributes).
Ideally the wildcard would be RegEx. If it were, the means by which you specify what to return is standardized.
In the above example, there would be some ambiguity in terms of whether or not you would want to return a result or an array of results given an input, and I doubt you could detect and assume RegEx is what the programmer desires to use. So I think this means a new input would be required to specify whether or not the "name" input of the Get Variant Attribute VI should be interpreted as a RegEx query.
Why RegEx? Why not SQL query? Why not filename wildcard matching?
I don't see anything that makes RegEx special. For this kind of functionality, the code that you've written seems like exactly the right way to do it rather than bolting a RegEx parser or any other system into the primitives or clouding the palette with a bunch of primitives to support various search functions. I could see a primitive that takes a VI refnum that has a conpane of string in/boolean out that you would pass in to supply the filter functionality that you want for any given application, but even that I'd lean toward just letting that be a library that someone writes on top of the primitives. Yes, there is some memory reduction that can be done if it is internal to the primitives, no question about that. But there are so many variations in how to do that filtration/sorting/etc that I'm not confident that any prim would cover a sufficient use case to be worth it. I could be wrong here ... let's see what other comments come in. -
Having trouble with a "pop up" LOV that should return several attributes
all the examples i've seen return a single value. what if my foreign key is concatenated? how do i return several attributes? right now the listener sets "value = #{row.xxx}.
Hi,
with "popup LOV", do you mean the dialog framework? Note that a dialog also can return multiple values in its returnFromDialog method of the AdfContext class. The first argument in this method is a single object, whereas the second is a HashMap so you can return multiple values.
However, the question is not completely clear to me as to what listener is writing to where. Note that EL can also be concatinated #{row.xx1} #{row.xx2}
Frank -
Security Attributes with Multiple/NULL values
I have a couple of situations where I can't seem to get the authorization component working as I need it to work for a database source.
1) In the first case, I have two attributes set for "grant security attributes" in the data source, one of which has a single attribute value, and the other which has multiple values, e.g.
I want to set "grant security attributes" to something like "client_id role_id" where for my dataset, client_id will always be a single numeric value, but I might have multiple role_ids that can view this record. How do I specify in my data source query those multiple attribute values? I tried separating them with spaces, e.g.
SELECT ...
'A B' role_id
FROM
where "A" and "B" represent unique values (looking to match A OR B). I also tried delimiting them with commas, but neither spaces nor commas seems to work consistently.
On the authorization end, using oracle.search.plugin.security.auth.db.DBAuthManager as the authorization plug-in, I have the authorization query set as
SELECT client_id, security_lvl as role_id from test_user_id where user_id = ?
Each user may have more than one role, so in the above query, security_lvl could be something like "B C"; I'm assuming from the documentation that the delimiter for attribute values in this case should be a space.
The crawler logs make it appear that everything is getting indexed, so I suspect the issue is on the authorization front.
2) In the second case, one of my security attributes for the data source may be NULL, meaning that there's no particular authorization restriction on a particular record, so to use the same example as in #1,
role_id might be NULL for some records, in which case, I want those records returned in the search if the client_id matches, but I can't get the records with the NULL role_id to be returned at all. Again, the crawler logs indicate that everything is being indexed, and I'm not sure if there's a log where I can further troubleshooting authorization issues.
Any guidance would be appreciated.
Thanks1) The security attributes are OR'd together so if the user has any ONE of the attributes (either client ID or role ID), the document can be seen by the user. What I would try is to create a view to call rather than directly against the table. The view can then leverage a PL/SQL function and encapsulate the logic behind the security tokens to return.
So the view would look like this...
CREATE OR REPLACE VIEW USER_SECURITY_V AS
SELECT
USER_T.ID,
MY_SECURITY_FUNCTION(USER_T.ID) AS AUTH_ID
FROM
USER_T
The PL/SQL function would look something like this...
CREATE OR REPLACE FUNCTION MY_SECURITY_FUNCTION(USER_ID NUMBER) RETURN VARCHAR2 IS
-- Do whatever you need to do to build a single space-deliminted list of tokens for both Client and Role ID "CLIENTID4 ROLEID5 ROLEID9" then return
END;
The data source authorization query then would look like this...
SELECT AUTH_ID FROM USER_SECURITY_V A WHERE A.ID = ?
Using a PL/SQL Function to control the tokens gives you the flexibility of modifying security without having to touch the data source directly
2) I don't quite follow. If any ONE of the tokens match, the document is returned. If the role ID is null, you might try stamping each document a "master" security token indicating it's open to everyone such as "ALL". Then in the PL/SQL Function, return "ALL" in front of the actual values.
The crawler logs will only tell you what is indexed at crawl time, not how searching is actually working. Try checking the server logs. These should be under something like oracle/ses/seshome/search/base_domain/servers/AdminServer/logs
Hope this helps!
Maybe you are looking for
-
Can not start the mobile server
Hello, I have the mobile server as an module of IAS on Linux, actually I am trying to start it but is the only component of IAS that I can not start
-
When I enter my user name and password on the site, I get a message that tells me that my active x control is not activated. Thx. JG
-
HT4327 Can I use an iPad 2nd charger to charge my iPhone 4S?
Is it safe to use the the chargers with each other?
-
Internal Concurrent Manager deactivated.
Hi Iam working on setting up R12 instances on Amazon Cloud Virtual machines. After running post clone steps when I check the concurrent managers - manage screen I see old node name. How to update this with the new node name. Also after changing the n
-
Revision: 12379 Revision: 12379 Author: [email protected] Date: 2009-12-02 10:33:56 -0800 (Wed, 02 Dec 2009) Log Message: Add metadata to new utils file. QE notes: Doc notes: Bugs: SDK-23930 Reviewer: Deepa Tests run: checkintests Is noteworthy