By: kesavan dhilip user 27 Mar 2018 at 1:57 a.m. CDT

1 Response
kesavan dhilip gravatar
Hi Team, I am using same client id for different gluu setup I have created one client id (@!1111!0000!6216!CCE6) in one gluu environment(env1) and I am trying to use the same client id in another gluu environment(env2) Main purpose is not to change client id in my various clients(ios/android/web). I am adding client id using LDAP query in ``` # step 1. Switch to GLUU lixunqi@gluu:~$ sudo service gluu-server-3.1.1 login # step 2. Find organization inum root@gluu:~# /opt/opendj/bin/ldapsearch -p 1636 -Z -X -D 'cn=directory manager,o=gluu' -w versa123 -b o=gluu gluuGroupType=gluuManagerGroup 1.1 dn: inum=@!6A29.994E.4382.D437!0001!18BF.C3A8!0003!60B7,ou=groups,o=@!6A29.994E.4382.D437!0001!18BF.C3A8,o=gluu # step 3. Create input ldif file. Replace with organization inum from step 2. Add/modify other client attributes accordingly. dn: inum=@!1111!0000!6216!CCE6,ou=clients,o=@!6A29.994E.4382.D437!0001!18BF.C3A8,o=gluu displayName: oxAuth test app inum: @!1111!0000!6216!CCE6 objectClass: oxAuthClient objectClass: top oxAuthAppType: web oxAuthClientExpirationDate: 20120120152419.312Z # Need to remove this line. oxAuthRedirectURI: https://client.example.com/cb oxAuthRedirectURI: https://client.example.com/cb1 oxAuthRedirectURI: https://client.example.com/cb2 oxAuthScope: openid oxAuthScope: profile oxAuthScope: address oxAuthScope: email oxAuthClientSecret: 607ae292-c8fe-486e-87d8-c28f84f8c0bd # step 4. Register client root@gluu:~# /opt/opendj/bin/ldapmodify --defaultAdd -p 1636 -Z -X -D 'cn=directory manager,o=gluu' -w versa123 -f addClient.ldif Processing ADD request for inum=@!1111!0000!6216!CCE6,ou=clients,o=@!6A29.994E.4382.D437!0001!18BF.C3A8,o=gluu ADD operation successful for DN inum=@!1111!0000!6216!CCE6,ou=clients,o=@!6A29.994E.4382.D437!0001!18BF.C3A8,o=gluu # step 5. Verify in Gluu GUI. ``` After adding the same client in gluu environment(env2) by using the above steps, I am trying to check the authorize flow(/oxauth/authorize) in env2 I am getting 500 error My server log is ``` Server Log: [xdi.oxauth.authorize.ws.rs.AuthorizeRestWebServiceImpl] (AuthorizeRestWebServiceImpl.java:643) - null java.lang.NullPointerException: null ``` Please help me out ASAP Will it possible to use same client id in different gluu environment? Note: I am using gluu version 3.1.1.

By Aliaksandr Samuseu staff 27 Mar 2018 at 11:04 a.m. CDT

Aliaksandr Samuseu gravatar
Hi, kesavan. >Please help me out ASAP Unfortunately, we don't offer any SLA for community support tickets. Those are treated as having the least priority, and customers' (paid support plans) tickets are attended first-first. If your organization may be interested in timely support please consider this option. Community support also usually doesn't cover non-standard usage and low-level modifications, which seems to be your case. But still I must note that your LDIF doesn't look correct. This part, for example: ``` oxAuthScope: openid oxAuthScope: profile oxAuthScope: address oxAuthScope: email ``` Scopes are added by their DN to this attribute, not by their human-readable names. I would recommend to dump some client's entry from Gluu's LDAP, and study it thoroughly before trying direct modifications. Overall, what are you aiming at should be possible. You don't even need to use inum format for client's ID, could be any string.