Get the groups name of a user in openldap authenticator
Hi,
I am using an openldap for user authentification. How can i retreive the groups name of a user ? I read that i must use the GroupManagerControl class.
What is the way to specify the openldap authenticator using the above class ?
Thanks for help.
If you are referring to a user's group membership in the Active Directory, then indeed JNDI & LDAP can be used to retrieve these values.
If you are referring to a user's local groups on their own workstation, then you may want to investigate either the JNDI NTLM provider or perhaps the Samba JCIFS stuff.
Similar Messages
-
Hello all,
I am using LabVIEW 8.0 PDS.
I created a new local domain called "MyDomain" in the "NI Domain Account Manager" . I added a new User called "MyUser" and a new group called "Maintenance". I set "MyUser" to be a member of the "Maintenance" group. Then, I configured LabVIEW to invoke the login dialog at start-up in order to log "MyUser" with the correct password.
I would like to get the group name of the current user logged programmatically in a VI. I tried with the VI Server >> Application >> Security properties and methods and also with the properties and methods of the NI Security Class but it seems to be not so simple as I believed at start.
I do not find any informations or KB on this (all the documents I found deal with LV DSC or TestStand).
The final goal is to be able to manage a list of user for my application. Each user is a member of a group ("Administrator", "Operator", "Maintenance") and depending on the group, the user can or cannot access to some parts of the application.
Thanks for your help.
Matthieu
EurilogicRe,
Here is a screenshot of this functions...
If you really own LV DSC 8.2 the best thing to do is to reinstall it.
Regards,
Message Edité par Richard K. le 04-02-2007 04:00 AM
Richard Keromen
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception
Attachments:
security.jpg 3841 KB -
How to get the group name of a user
Hi,
I am using an openldap for user authentification. How can i retreive the groups name of a user ? I read that i must use the GroupManagerControl class.
What is the way to specify the openldap authenticator using the above class ?
Thanks for help.Re,
Here is a screenshot of this functions...
If you really own LV DSC 8.2 the best thing to do is to reinstall it.
Regards,
Message Edité par Richard K. le 04-02-2007 04:00 AM
Richard Keromen
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception
Attachments:
security.jpg 3841 KB -
How to get the real name of a user from WFSYST-AGENT
Hi,
I am retrieving the WFSYST-AGENT value (which correspond to the US<user_id> of the agent responsible of a task) in a container variable in my workflow.
I would like to get the real name of the user represented by WFSYST-AGENT. How should I do that ?
Thanks in advance for your help.
ThibaultHi,
Take the user name and write a select for database table USER_ADDR fetching fields NAME_FIRST and NAME_LAST by passing BNAME = username.
Regards,
Jayesh -
How to get the terminal name of http user?
Hi Gurus,
I use function TH_USER_LIST to get all online users. But for http users I can only get their IP address, but no terminal name.
I searched the forum and tried the function RFC_IP_TO_HOST. However, when I input IP address it didn't return the terminal name.
The http users are running BW queries in Internet Explorer. FYI.
Any help is much appreciated!
Regards,
FrankHello
This code works:
DATA: BEGIN OF SERVER_LIST OCCURS 0.
INCLUDE STRUCTURE MSXXLIST.
DATA: END OF SERVER_LIST.
DATA: BEGIN OF USER_LIST OCCURS 0.
INCLUDE STRUCTURE UINFO.
DATA: END OF USER_LIST.
DATA: BEGIN OF USER_LIST1 OCCURS 0.
INCLUDE STRUCTURE UINFO.
DATA: END OF USER_LIST1.
DATA: USER_TERM LIKE RFCDISPLAY-RFCHOST.
CALL FUNCTION 'TH_SERVER_LIST'
TABLES
LIST = SERVER_LIST
EXCEPTIONS
OTHERS = 1.
LOOP AT SERVER_LIST.
CALL FUNCTION 'TH_USER_LIST'
DESTINATION SERVER_LIST-NAME
TABLES LIST = USER_LIST1.
APPEND LINES OF USER_LIST1 TO USER_LIST.
REFRESH USER_LIST1.
ENDLOOP.
LOOP AT USER_LIST WHERE GUIVERSION IS INITIAL.
IF NOT USER_LIST-TERM IS INITIAL.
MOVE USER_LIST-TERM TO USER_TERM.
CALL FUNCTION 'RFC_IP_TO_HOST'
EXPORTING RFCIP = USER_TERM
IMPORTING RFCHOST = USER_TERM.
IF SY-SUBRC = 0.
MOVE USER_TERM TO USER_LIST-TERM.
MODIFY USER_LIST.
ENDIF.
ENDIF.
ENDLOOP. -
How can we retrieve the Group name from oid?
Hi:
In following request object, we can get all the user related information from oid except group name where a particular user belongs to.
For instance user id, first name, last name and email etc but we could not get the group name.
PortletRenderRequest pReq = (PortletRenderRequest)
request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
pReq.getUser()……
Please advice, how I we get the hold of group name from orcldefaultprofilegroup (oid)?
I would really appreciate your reply.
Thank you.
- Ali Raza.I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
--Balaji S -
Retrieving user detail, group name for all users
Hi,
How can I retrieve User name, email, authentication, user group name
for all users using SDK.
It is possible to create this report in webi or CR?
Thank you for reply,
GregorUse the following code to retrieve this information:
IInfoObjects users = oInfoStore.query("select * from ci_systemobjects where si_kind='user'");
for (int i=0; i<users.size(); i++)
IUser user = (IUser)users.get(i);
// user.getTitle(); for user name
// user.getFullName(); for user's full name
// user.getEmailAddress(); for user's email address
// for authentication type:
IUserAliases alises = user.getAliases();
for(int j=0; j<aliases.size();j++)
IUserAlias alias = alises.get(j);
// alias.getAuthentication() for authentication associated with this alias, since same user can have more than 1 authentication. e.g. Enterprise and Ldap.
// for user group memberships:
java.util.Set groups = user.getGroups();
// the groups Set object will contain SI_ID of all the user groups that this uses is member of. You need to query by the SI_ID of the usergroup to get the group names.
// e.g.
// oInfoStore.query("select si_id, si_name from ci_systemobjects where si_kind='usergroup' and si_id in (a,b,c....)");
where a,b,c are the SI_IDs of the usergroups.
To create a report based on the above fetched data, there are several methods such as:
you can use Java resultset where in you create the report structure in designer and push the data at runtime using java result set objects. Another way is to push this info in Excel or Access and design your report based on that excel\access. -
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha -
I created a Group and put in all names and email addresses but cannot get the group to appear in an outgoing email message. What am I doing wrong?
This may help.
Can't connect to the iTunes Store
What happens whenyou try to connect? Error messages? -
Hello Experts,
I follow the flightbooking tutorial to create a Material application to get material list. I can start the agentry server but when I connect to SAP server and get data, I face below issue
Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER
I check the parameters name in SAP Agentry Config panel, all are correct. Why cannt it get the data. Do I have to add anything in javaBE.ini? Please help me. Thank you very much.
My javaBE
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=0
GET_PERSONNEL_INFO=
[SERVICE_LOGON]
ENABLED=true
UID=hngu3
UPASSWORD=xxxxxxx
UPASSWORDENCODED=false
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRTHi Tahir, please help me check the log below
Agentry Runtime Worker Thread###throwExceptionToClient::begin |
Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.material.steplet.MaterialSteplet::throwExceptionToClient::397::MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER |
Agentry Runtime Worker Thread###Exception: 17:15:35 06/17/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER), |
Agentry Runtime Worker Thread###loggedOut::begin |
Agentry Runtime Worker Thread###HNGU3: SESSION END |
Agentry Runtime Worker Thread###BAPI::begin |
Agentry Runtime Worker Thread###create::nulled repository::created new repository |
Agentry Runtime Worker Thread###create::/SYCLO/CORE_MDW_SESSION1_DEL Connection ID: com.sap.mw.jco.JCO$Client@2656ed99 |
Agentry Runtime Worker Thread###create::Function /SYCLO/CORE_MDW_SESSION1_DEL created | -
How to get the Country Name details always in Eng while using the SForms
Hi Group,
I have a requirement as under:
the Smartform has to display the COUNTRY NAME - always and it should be printed in ENGLISH only.
The Smartform is having a Alternative option(for printing the Address) and for YES part(for certain countries) - the fm "ADDRESS_INTO_PRINTFORM" is being used and for the NO(for the rest of the countries) part an ADDRESS TEMPLATE is being used....
The issues are:
- the fm 'ADDRESS.......FORM" is printing the COUNTRY Name for certain cases and for the rest it is not...
- the Address template has no option to do any manipulation on the COUNTRY Name to come
how can have the COUNTRY NAME to appear in both the cases(YES part and NO part) printed in ENGLISH always?
I tried for a USEREXIT "EXIT_SAPLSADR_900" but still not able to tweak it and get the COUNTRY NAME always in ENGLISH.
Kindly provide your valuable inputs.
Regards,
Vishnu.Hi Laura Taylor ,
Thanks for your Reply and Thanks for ur Guidelines.
Thanks & Regards
Subu.
"Laura Taylor" <[email protected]> wrote:
>
>Unfortunately, there is no way to determine the country unless the client
>indicates
>that to you directly(i.e. via a form input value). However, there are
>two request
>headers that can help you determine the language preference(s) of the
>client:
>
>Accept-Language -- Specifies the language preference(s) the client prefers
>to
>receive.
>Accept-Charset -- Identifies the charset(s) the client understands.
>
>Laura
>Developer Relations Engineer
>BEA Support
>
>
>"Subu" <[email protected]> wrote:
>>
>>Hi ,
>> i have a requiremtn in which i want to display the country name
>from
>>where
>>the user browse our webpages . for example if he is browsing from us
>>, then i
>>should display US and if he is browsing from UK , then i should dispaly
>>"uk" etc...
>>can anyone guide me how to proceed .
>>
>>thanks in advance
>>
>>Regards
>>Subu
>
-
How to make a group name appear as the group name and not "Undisclosed Reci
About Group Names:
I made a group of about 15 people. I named that group “BASEBALLERS." I have another group that I labeled ”BASKETBALLERS." When I want to send info that pertains to both, I type out each group name and they both appear in the “To:” field with those names I created.
However, when I receive copies of this email, the group names BASEBALLERS and BASKETBALLERS gets changed to boring old ”Undisclosed Recipients.“
Is it possible for everyone to receive my emails and see the two group names instead of ”Undisclosed recipients“?
Thank you. According to the Help Menu in Mail, it should be possible. Or does it have to do with individual ISPs?
-Lorna in Southern California
http://web.mac.com/lorna6Hi DazFaz,
true, but with an array with length of 1 rounding down
prevents an index
out of range error.
In you original code you 'round down' by multiplying by the
length of
the array -1 while I round down with Math.floor (and multiply
by the
actual length of the array).
Is there a difference in result?
The code below can yield 1 while the array may just be 1 item
long:
var arrayLength:Number = 1;
var rnd:Number = Math.random() * arrayLength;
var rndV1 = Math.floor(rnd);// Rounds ONLY down to the
nearest integer
var rndV2 = Math.round(rnd);// rounds up OR down to the
nearest integer
trace(rnd + "\t" + rndV1 + "\t" + rndV2);
so either decrement the length or floor the number. Same
difference (No?)
I love puzzels :)
DazFaz wrote:
> Hi Manno Bult.
>
> The problem with user Math.floor is that it only moves
in one direction and
> that is down to an integer.
> With Math.round ir rounds off the number to the nearest
integer.
>
> If you run the code I have modified from yours, you will
see what I mean. You
> will notice that rndV1 always stays at 0 yet rndV2 will
deviate from 0 to 1.
> Making it a more accurate way of finding a true random
number.
>
> var rnd:Number = Math.random();
> var rndV1 = Math.floor(rnd);// Rounds ONLY down to the
nearest integer
> var rndV2 = Math.round(rnd);// rounds up OR down to the
nearest integer
>
> trace(rnd + "\t" + rndV1 + "\t" + rndV2);
>
Manno Bult
[email protected] -
PORTAL.WWCTX_API.get_user how can i get the group?
I'm using Oracle AP 10g
I know the PORTAL.WWCTX_API.get_user will give you the user id , but anyone knows which one do i need to use to come out with the group name .
P.S : the group name contains a list of certain employees
also where can i get a list of all the API's that i can use
Thank you
Nedal SeyamNedal Seyam wrote:
I'm using Oracle AP 10g
I know the PORTAL.WWCTX_API.get_user will give you the user id , but anyone knows which one do i need to use to come out with the group name .
P.S : the group name contains a list of certain employees
also where can i get a list of all the API's that i can useI dont know what is Oracle AP 10g.
However, you are probably looking for the default group name for a given user. Please see wwsec_api.get_defaultgroup.
look into wwsec_api.get_list_members for a list of members in a group.
The links to APIs that Opportalist presented should lead you to the descriptions of both functions.
hope that helps!
AMN -
Group number from Channel (GroupIndexGet only works provided you know the group name)
As it says in title. Im trying to get the group index number from the user having selected a channel. The ChannelNameGet also relies on you knowing the group index, any help here would be greatly appreciated!
Many thanks
Dan
Solved!
Go to Solution.Hi Dan -
If you're using a relatively recent version of DIAdem, just use the object-oriented structure of the Data Portal:
Data.GetChannel("Channel_Name").ChannelGroup.Properties("index").Value
...where "Channel_Name" is your channel's name. If you use the above line of code literally, then make sure your channel name is unique - otherwise you'll need to provide a group name as well (e.g. "Strain/Channel_1") to the parameter being passed to the GetChannel() method.
Derrick S.
Product Manager
NI DIAdem
National Instruments -
[TIP]-Getting Uses Group Names Efficiently
We were having trouble getting the names of the groups that a user belonged to. We could easily get the object ID's but getting the name for each group was very slow issuing single row queries. Anyway we are able to query group memberships efficiently using a queryfilter.
Here is a code snippet in Java:
public ArrayList getUserGroupNames ()
throws MalformedURLException, RemoteException, NotInRequestException
ArrayList groupNames = new ArrayList();
IRemoteSession remoteSession = edk.getRemotePortalSession();
//Get array of group object Id's that the user belongs too.
int[] groupIdArray = remoteSession.getUserManager().getCurrentUserGroups();
//Issue a query on the object Id's to get their names
ObjectProperty[] op = {UserGroupProperty.SimpleName};
QueryFilter[] qf = {new IntArrayQueryFilter(ObjectProperty.ObjectID, Operator.In, groupIdArray)};
IObjectQuery ioq = remoteSession.getUserGroupManager().queryObjects(-1, 0, -1, ObjectProperty.ObjectID, true, op, qf);
for (int i = 0; i < ioq.getRowCount(); i++)
groupNames.add(ioq.getRow(i).getStringValue(UserGroupProperty.SimpleName));
return groupNames;
Hope this is usefull to others.Hi,
You can still add 50 addresses to the group in the paid version and test it without sending it. After adding all contacts to the group, click on the group name and it should launch the Mail application with all recipient's email addresses populated in the respective To, CC or BCC fields. You can touch the CC or BCC fields and it will expand the list containing all the addresses.
Since you dont wan't to send the email, you can just cancel out of the operation after verifying if all the email addresses are being populated.
Maybe you are looking for
-
System status not get updated.
hai any one can help me in this pls my client created sevice orders in crm system and in these some details are reflected in to mobile client.There is integration between in CRM & Mobile clients. present requirement is system status is not get update
-
GRID_CNTRL Exception coming from CL_GUI_ALV_GRID- Refresh_Table
Hi I am using REUSE_ALV_GRID_DISPLAY for ALV grid Display with various secondary ALV . I have some editable fields in that and I need to refresh the screen I am able to get the ALV refreshed using CL_GUI_ALV_GRID->Refresh_Table . Problem: When I go t
-
PLEASE HELP WITH SCC!!
I'm just completely baffled at why the SCC files aren't working properly with my dvd. I'm checking the DVD on a progressive player. Is there a problem with that? I have adjusted all of the start times of my mpegs to co-inside with the SCC files provi
-
Error : FRM-41316: cannot set insert allowed property of disabled item
Hi Forum, I have a requirement to making the following field non editable Ship Confirm Rule+ in Order Management-->"Release Sales Orders"-->"Shipping" tab I tried to achieve this using form personalization using the below condition and action Trigger
-
How to install Bios in a computer with no OS.
I need to install new BIOS in a Lenovo 3000 C200 8922-2AU. There is no OS in the laptop and I can not install it until I update the BIOS first. How can I get the Bios in a bootable CD?