Query for list of supported auth mechanisms
Is there a way to query a BO server for a list of supported authentication mechanisms such as secEnterprise or trusted secret or secWinAD, etc?
I haven't tested but this should work:
InfoObject oIfoObject = (IInfoObject) oInfoStore.query("select si_id from ci_systemobjects where si_name='Auth Plugins'").get(0);
IInfoObjects authPlugins = oInfoStore.query("select * from ci_systemobjects where si_parentid=" + oInfoObject.getID());
for(int i=0; i<authPlugins.size(); i++)
IInfoObject authPlugin = (IInfoObject) authPlugins.get(i);
// above returns a specific plugin object: secLDAP, secWinAD, secSAPR3, secEnterprise all what your installation supports
// cast the InfoObject to IsecWinAD if si_kind=' secWinAD' or si_name is secWinAD
if(authPlugin.getTitle().equalsIgnoreCase("secWinAD"))
IsecWinAD winad = (IsecWinAD) authPlugin;
int availability = winad.getAvailaility(); //0 - if plugin is not configured\ready to use, 1 if ready to use and configured.
String enabled =winad.properties().getProperty("SI_TRUSTED_AUTH_ENABLED").getValue().toString(); // returns true if trusted aut is enabled for this plugin, false otherwise.
I don't think you can read any property to retrieve the trusted key. The above code will give the auth plugins that are available in your install, which ones are ready and configured ( I have checked only the AD ones above) and if trusted auth is enabled. Check query builder properties if you are trying to get additional info for the auth plugins.
Similar Messages
-
Query for listing several values in same field
Hi,
is there a function for listing more than one value in the same field, only with comma seperation?
For example, I want to group by cardcode from ORDR and list all docnum's like this:
Cardcode Docnum's
21355 98765, 95498, 95164
21564 95484, 54684, 95654, 98465
21865 95484, 12486
Kind regards
Kjetil SandvikHI,
Thank for your replies.
We need to update all old orders for sure, but my idea was to use this query:
Select CardCode, COUNT(Address2) From ORDR Where Docstatus <> 'C' GROUP BY address2, cardcode order by cardcode, address2
The results will give me two lines for each customer and count the addresses, so then I know that the count of one of the lines must me changed. Let's say there is 20 orders with new address and 20 orders with old address, my intention was to manually change the 20 orders that is old. Instead of checking all 40, It would help alot to list all order numbers in a column beside in the query.
BR
Kjetil -
Query for list of specifications
Hi Experts,
We need to execute query which should contain list of specifications with and without material assignments.Selection criteria is based on generation variant.
Please let us know from which tables we can get the above list.
Thanks for your help!!
Regards,
Sivasankar
Message was edited by: Sivasankar P
Message was edited by: Sivasankar PHi Chris,
This issue is not related to consultant and it is related to end user. We have query which is already defined to pick up specifications with material.Now they have requested us to get the query even there is no material assigned to specifications.
So we have planned to remove material from query, so if we remove ESTMJ from query whether it will have impact on some other tables.(like ESTDJ,ESTRH,ESDTH,etc..)
Thanks for your help!!
Query:
*delete report if there is no material
SORT I_ESTRH BY RECNROOT.
SORT I_ESTMJ BY RECNROOT.
IF I_ZESTRHESTDJESTDH[] IS NOT INITIAL OR
I_ZESTRHESTDJESTDH1[] IS NOT INITIAL.
LOOP AT I_ESTRH INTO WA_ESTRH.
MOVE SY-TABIX TO V_INDEX.
READ TABLE I_ESTMJ INTO WA_ESTMJ WITH KEY RECNROOT = WA_ESTRH-RECNROOT
BINARY SEARCH.
IF SY-SUBRC NE 0.
READ TABLE I_ZESTRHESTDJESTDH WITH KEY SUBID_ESTRH = WA_ESTRH-SUBID
BINARY SEARCH.
IF SY-SUBRC NE 0.
READ TABLE I_ZESTRHESTDJESTDH WITH KEY SUBID = WA_ESTRH-SUBID
BINARY SEARCH.
IF SY-SUBRC NE 0.
READ TABLE I_ZESTRHESTDJESTDH1 WITH KEY SUBID = WA_ESTRH-SUBID
BINARY SEARCH.
IF SY-SUBRC NE 0.
READ TABLE I_ZESTRHESTDJESTDH1 WITH KEY SUBID_ESTRH = WA_ESTRH-SUBID
BINARY SEARCH.
IF SY-SUBRC NE 0.
DELETE I_ESTRH INDEX V_INDEX.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
Regards,
Sivasankar -
Hi Gurus,
I have a requirement, i have one server on which i have got 20 DB and now i want to list those 20 DB and the count of total tables on each DB and the last login date on each DB. How can i do that? i was trying the below one but in vain.
EXEC sp_databases;
can you please provide your inputs for this.
Thanks,
RMThen I am speechless.
In Oracle, for the table counts:
select owner, count(*) from dba_tables group by owner;For last login date you need to enable auditing to track something like that.
For SQL Server databases you should go here :
http://social.msdn.microsoft.com/Forums/en/category/sqlserver
Good luck! -
Ridc query for list of WebSites
I am just starting with RIDC and with UCM, developing a web app to allow access to UCM via IDC. I need to get back data for presenting lists to my users, like: list of websites maintained by UCM, list of sections within particular websites, etc. I am baffled and would appreciate tips as to service to use (GET_SEARCH_RESULTS ??) and parameters which need to go into the DataBinder to use with the service. At this point I can do simple queries to find content, but not much more.
Hi.
To filter Site Studio Sites in UCM you have tu execute GET_SEARCH_RESULTS filtering by: xWebsiteObjectType <matches> `Project`.
You'll obtain the list of Site Studio Sites :).
PD: It's a WebCenter Content Post not WebCente Portal ;). -
TDS Amount on Vendor Advance Shows positive value in *QUERY* for TDS Report
Hi Everybody,
I have made a query for List of TDS Report with Vendor informations as required by my client. In which the value of TDS on Vendor Advance Payment appears as positive value instaead of negative value. Please suggest how to rectify.
Thanks,
PaulDear,
If you have cleared the advance in F-54, then this will reverse the tax amount. That could be the reason for tax amount in debit. -
CAML query for more than two items in a list and bind those result to gridview?
Hi Team,
I am binding sharepoint 2013 list to gridview programatically.
Now i need to search the results. If i gave some key word in text box and click on search.
Then it should display only those values in gridview using caml query.
Below is my form.Hi,
Here is a blog about the CAML Query with Multiple Conditions for your reference:
http://aasai-sharepoint.blogspot.com/2013/02/caml-query-with-multiple-conditions.html
If you want to filter the list item, here is a web part from codeplex with the source code for your reference:
SharePoint ListView Filter
https://splistviewfilter.codeplex.com/
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
ABAP Query, To list both, the PO created and PO modified for a given period
Hi
I want to create a query that list the purchasing orders created or modified during a given period. however, the creation date and the modification date are two different fields stored in differents tables.
if I have these two fields in the selection creteria screen, the relationship between them will be the operator AND. so this will not enable me to have the information targeted.
My quetion, is there a possibility to have the Operator OR in the first selection creteria screen , between these 2 fields.?
the tables are:
for the creation EKKO
for the change :
MECDGRID
CDHDR Change document header
CDPOS Change document items
thanksHello,
Fetch data from EKKO and do a for all entries on the table CDHDR on the field OBJECTID and EBELN and t-code = ME21N OR ME21 ETC.
Similarly between CDHDR and CDPOS tables based on objectid`s.
Hope this helps you in solving your problem!
Regards,
Reetesh -
Problem writing a sql query for a select list based on a static LOV
Hi,
I have the following table...
VALIDATIONS
ID Number (PK)
APP_ID Number
REQUESTED Date
APPROVED Date
VALID_TIL Date
DEPT_ID Number (FK)
I have a search form with the following field item variables...
P11_DEPT_ID (select list based on dynamic LOV from depts table)
P11_VALID (select list based on static Yes/No LOV)
A report on the columns of the Validations table is shown based on the values in the search form. So far, my sql query for the report is...
SELECT v.APP_ID,
v.REQUESTED,
v.APPROVED,
v.VALID_TIL,
d.DEPT
FROM DEPTS d, VALIDATIONS v
WHERE d.DEPT_ID = v.DEPT_ID(+)
AND (d.DEPT_ID = :P11_DEPT_ID OR :P11_DEPT_ID = -1)
This query works so far. My problem is that I don't know how to do a search based on the P11_VALID item - if 'yes' is selected, then the VALID_TIL date is still valid. If 'no' is selected then the VALID_TIL date has passed.
Can anyone help me to extend my query to include this situation?
Thanks.Hello !
Let's have a look at my example:create table test
id number
,valid_til date
insert into test values( 1, sysdate-3 );
insert into test values( 2, sysdate-2 );
insert into test values( 3, sysdate-1 );
insert into test values( 4, sysdate );
insert into test values( 5, sysdate+1 );
insert into test values( 6, sysdate+2 );
commit;
select * from test;
def til=yes
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
def til=no
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
drop table test; It's working fine, I've tested it.
The above changes to my first idea I did because of time portion of the DATE datatype in Oracle and therefore the wrong result for today.
For understandings:
1.) TRUNC removes the time part of DATE
2.) The difference of to date-values is the number of days between.
3.) SIGN is the mathematical function and gives -1,0 or +1 according to an negative, zero or positiv argument.
4.) DECODE is like an IF.
Inspect your LOV for the returning values. According to my example they shoul be 'yes' and 'no'. If your values are different, you may have to modify the DECODE.
Good luck,
Heinz -
Hi there
I got the following message when trying to install Photoshop CC, "You are running an operating system that Photoshop no longer supports. Refer to the system requirements for a full list of supported platforms."
I use Windows Vista so not sure what I need to do now! Any help would be much appreciated thanks.Photoshop CC only runs on Windows 7 or Windows 8/8.1. Not Vista.
System requirements | Photoshop -
I'm running Mac OS X version 10.6.8 How come I get this error message "You are running an operating system that Photoshop no longer supports. Refer to the system requirements for a full list of supported platforms." When I Try to download a FREE trail?
Hi Brizill,
Please refer to the help document below to understand the technical specifications for the same:
System requirements | Photoshop
Regards,
Sheena -
SQL query to list the "Administrative category" field for all applications
yesterday i started a thread to list the "Optional reference" field for all cm applications in a SSRS report. I've got the query with the help of Torsten.
https://social.technet.microsoft.com/Forums/en-US/00419e6e-e3c2-4b80-b6af-2a24ced1032d/sql-query-to-list-the-optional-reference-field-of-all-packages-in-cm-2012?forum=configmanagersdk
But again today, i'm looking for a way to get "Administrative category" field in a SSRS report. Could someone point me to the right direction ?
Kindly mark as answer/Vote as helpful if a reply from anybody helped you in this forum. DelphinHi,
You could monitor the SMSProv.log when you check the category of an application. It shows that SQL query the SCCM provider used is related to function fn_ListCategoryInstances.
Best Regards,
Joyce -
Experts,
Can you please tell me what will be the query for
for all prices which are u201C0u201D empty (products)
Thanks a lot in advanceThanks a lot Rahul and Gordon
I am trying like as per the need
SELECT T0.ItemCode, T0.ItemName, T0.ItmsGrpCod, T2.ListNum, T2.ListName,
Sum (T1.[Price]) FROM OITM T0 INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode INNER
JOIN OPLN T2 ON T1.PriceList = T2.ListNum GROUP BY T0.[ItemCode] HAVING Sum (T1.[Price]) <=0
But error comes like
1). [Microsoft][SQL Native Client][SQL Server]Column 'OITM.ItemCode' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. 2). [Microsoft][SQL Native Client][SQL Server]Statement 'Received Alerts' (OAIB) (s) could not be prepared.
Please Help -
Unable to download because it says "You are running an operating system that InDesign no longer supports. Refer to the system requirements for a full list of supported platforms." But its updated according to the system requirements. What can I do to fix this?
Which versions of InDesign are you referring to? What are the operating system specs for the machine?
-
Help when i try to download the after effects trial this is what it comes up with
You are running an operating system that After Effects no longer supports. Refer to the system requirements for a full list of supported platforms.See the system requirements for each version of After Effects:
System requirements | After Effects
Maybe you are looking for
-
What to do if you simultaneously run Time Machine and File Vault
Never do what is mentioned in the subject line; even if you decrypt your drive, it does not spread to Time Machine, and so if you ever need to do a system restore, File Vault will forget your password and lock you out of your own system. Thankfully,
-
Error in Mail Form: Academic titles
Hi All, I have included the fields 1. Title_Key and 2. Title_Aca1 from the BP_Structures in my mail form. My mail form is in a different language. Thus, the requirement is to have the Title and Academic Title in the other language. I have maintained
-
Itunes won't open after 10.6 install
I can no longer open itunes after a fresh install of 10.6 and a migration of settings/files from a back-up. Now when I open itunes I get: "The itunes library file is locked, on a locked disk or you do not have write permission for this file." My itun
-
How do i burn a playable dvd with these files?
.vob .bup and .ifo files. which program should i use?? thanks.
-
i download the jexcel but i dont know how i configure it , to used note : i use ibm websphere the notes : i find are : 1-JExcel uses JNIWrapper, ComfyJ and WinPack products, so all these JAR files should be in the application class path. 2- Native JN