Re: [Dev] [EMM] Errors when creating secondary user store

2015-06-04 Thread Amalka Subasinghe
The properties I have bolded

On Thu, Jun 4, 2015 at 1:32 PM, Inosh Perera  wrote:

> Hi Amalka,
>
> But that config contains some properties with spaces. isn't this something
> we need to fix?
> Could you please highlight what these properties are exactly?
>
> Regards,
> Inosh
>
> On Thu, Jun 4, 2015 at 1:10 PM, Amalka Subasinghe  wrote:
>
>> Hi,
>>
>> I could see secondary domain and AD users with following config. But that
>> config contains some properties with spaces. isn't this something we need
>> to fix?
>>
>> > class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
>>
>> WSO2.ORG
>> false
>> *false*
>>
>> false
>> > name="ConnectionName">CN=Administrator,CN=Users,DC=wso2,DC=test
>>   *  CN=Administrator,CN=Users,DC=wso2,DC=test*
>> ldaps://192.168.18.13:636
>> *ldaps://192.168.18.13:636
>> *
>> pass#word2
>>   *  pass#word2*
>> CN=Users,DC=wso2,DC=test
>>   *  CN=Users,DC=wso2,DC=test*
>> PLAIN_TEXT
>>
>>
>> *  (&(objectClass=user)(cn=?))(objectClass=user)user*
>> user
>> cn
>>   *  cn*
>> false
>> 512
>> (objectClass=user)
>> > name="UserNameSearchFilter">(&(objectClass=user)(cn=?))
>> [a-zA-Z0-9._-|//]{3,30}$
>> ^[\S]{3,30}$
>> ^[\S]{5,30}$
>> ^[\S]{3,30}$
>> [a-zA-Z0-9._-|//]{3,30}$
>> true
>> true
>> true
>> CN=Users,DC=WSO2,DC=Com
>> group
>> cn
>> cn
>> > name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org
>> groups
>> > name="SharedTenantNameListFilter">(object=organizationalUnit)
>> ou
>> organizationalUnit
>> member
>> (objectcategory=group)
>> > name="GroupNameSearchFilter">(&(objectClass=group)(cn=?))
>> true
>> follow
>> true
>> 100
>> 100
>> false
>> AD2
>>
>>  
>>
>>
>> On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to setup AD as secondary user store in EMM 1.1.0.
>>>
>>> When I try to create it via UI it creates the xml file as [1]. each
>>> property contains a space between words
>>> then the carbon log gives an error [2] saying "Required ConnectionURL
>>> property is not set at the LDAP configurations"
>>> Then I removed the space in between property "Connection URL" and save.
>>> Then carbon log gives another error [3] - "Required mandatory property
>>> Connection URL is not defined!"
>>> So I gave both "Connection URL" and "ConnectionURL" in xml file to solve
>>> the issue with ConnectionURL
>>>
>>> Same as above, I had to specify the same property with and without space
>>> to fix the errors in carbon log and there were some properties missing in
>>> the xml file too. had to add those manually.
>>> [4] shows the xml file after fixing all the errors. [missing properties
>>> shows in red color.]
>>>
>>> Still I can't see the Secondary user domain and users of the AD in users
>>> page. How can I fix this?
>>>
>>> [1]
>>>
>>> >> class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
>>>   CN=Administrator,CN=Users,DC=wso2,DC=test
>>>   ldaps://192.168.18.13:636
>>> 
>>>   pass#word2
>>>   CN=Users,DC=wso2,DC=test
>>>   false
>>>   (objectClass=user)
>>>   cn
>>>   (&(objectClass=user)(cn=?))
>>>   user
>>>   group
>>>   100
>>>   100
>>>   true
>>>   false
>>>   true
>>>   CN=Users,DC=WSO2,DC=Com
>>>   (objectcategory=group)
>>>   cn
>>>   member
>>>   
>>>   (&(objectClass=group)(cn=?))
>>>   PLAIN_TEXT
>>>   ^[\S]{5,30}$
>>>   ^[\S]{3,30}$
>>>   [a-zA-Z0-9._-|//]{3,30}$
>>>   ^[\S]{3,30}$
>>>   [a-zA-Z0-9._-|//]{3,30}$
>>>   true
>>>   uid={0},ou=Users,dc=wso2,dc=org
>>>   true
>>>   WSO2.ORG
>>>   false
>>>   cn
>>>   false
>>>   512
>>>   follow
>>>   true
>>>   AD
>>>   
>>> 
>>>
>>> [2]
>>>
>>> [2015-06-04 11:32:59,024] ERROR
>>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Cannot
>>> create org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>> at
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.createSecondaryUserStoreManager(AbstractUserStoreManager.java:3469)
>>> at
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.addSecondaryUserStoreManager(AbstractUserStoreManager.java:3525)
>>> at
>>> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:65)
>>> at
>>> org.wso2.carbon.identity.user.store.

Re: [Dev] [EMM] Errors when creating secondary user store

2015-06-04 Thread Inosh Perera
Hi Amalka,

But that config contains some properties with spaces. isn't this something
we need to fix?
Could you please highlight what these properties are exactly?

Regards,
Inosh

On Thu, Jun 4, 2015 at 1:10 PM, Amalka Subasinghe  wrote:

> Hi,
>
> I could see secondary domain and AD users with following config. But that
> config contains some properties with spaces. isn't this something we need
> to fix?
>
>  class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
>
> WSO2.ORG
> false
> *false*
>
> false
>  name="ConnectionName">CN=Administrator,CN=Users,DC=wso2,DC=test
>   *  CN=Administrator,CN=Users,DC=wso2,DC=test*
> ldaps://192.168.18.13:636
> *ldaps://192.168.18.13:636
> *
> pass#word2
>   *  pass#word2*
> CN=Users,DC=wso2,DC=test
>   *  CN=Users,DC=wso2,DC=test*
> PLAIN_TEXT
>
>
> *  (&(objectClass=user)(cn=?))(objectClass=user)user*
> user
> cn
>   *  cn*
> false
> 512
> (objectClass=user)
>  name="UserNameSearchFilter">(&(objectClass=user)(cn=?))
> [a-zA-Z0-9._-|//]{3,30}$
> ^[\S]{3,30}$
> ^[\S]{5,30}$
> ^[\S]{3,30}$
> [a-zA-Z0-9._-|//]{3,30}$
> true
> true
> true
> CN=Users,DC=WSO2,DC=Com
> group
> cn
> cn
>  name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org
> groups
>  name="SharedTenantNameListFilter">(object=organizationalUnit)
> ou
> organizationalUnit
> member
> (objectcategory=group)
>  name="GroupNameSearchFilter">(&(objectClass=group)(cn=?))
> true
> follow
> true
> 100
> 100
> false
> AD2
>
>  
>
>
> On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe 
> wrote:
>
>> Hi,
>>
>> I'm trying to setup AD as secondary user store in EMM 1.1.0.
>>
>> When I try to create it via UI it creates the xml file as [1]. each
>> property contains a space between words
>> then the carbon log gives an error [2] saying "Required ConnectionURL
>> property is not set at the LDAP configurations"
>> Then I removed the space in between property "Connection URL" and save.
>> Then carbon log gives another error [3] - "Required mandatory property
>> Connection URL is not defined!"
>> So I gave both "Connection URL" and "ConnectionURL" in xml file to solve
>> the issue with ConnectionURL
>>
>> Same as above, I had to specify the same property with and without space
>> to fix the errors in carbon log and there were some properties missing in
>> the xml file too. had to add those manually.
>> [4] shows the xml file after fixing all the errors. [missing properties
>> shows in red color.]
>>
>> Still I can't see the Secondary user domain and users of the AD in users
>> page. How can I fix this?
>>
>> [1]
>>
>> > class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
>>   CN=Administrator,CN=Users,DC=wso2,DC=test
>>   ldaps://192.168.18.13:636
>> 
>>   pass#word2
>>   CN=Users,DC=wso2,DC=test
>>   false
>>   (objectClass=user)
>>   cn
>>   (&(objectClass=user)(cn=?))
>>   user
>>   group
>>   100
>>   100
>>   true
>>   false
>>   true
>>   CN=Users,DC=WSO2,DC=Com
>>   (objectcategory=group)
>>   cn
>>   member
>>   
>>   (&(objectClass=group)(cn=?))
>>   PLAIN_TEXT
>>   ^[\S]{5,30}$
>>   ^[\S]{3,30}$
>>   [a-zA-Z0-9._-|//]{3,30}$
>>   ^[\S]{3,30}$
>>   [a-zA-Z0-9._-|//]{3,30}$
>>   true
>>   uid={0},ou=Users,dc=wso2,dc=org
>>   true
>>   WSO2.ORG
>>   false
>>   cn
>>   false
>>   512
>>   follow
>>   true
>>   AD
>>   
>> 
>>
>> [2]
>>
>> [2015-06-04 11:32:59,024] ERROR
>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Cannot
>> create org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>> at
>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.createSecondaryUserStoreManager(AbstractUserStoreManager.java:3469)
>> at
>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.addSecondaryUserStoreManager(AbstractUserStoreManager.java:3525)
>> at
>> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:65)
>> at
>> org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer.deploy(UserStoreConfigurationDeployer.java:58)
>> at
>> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>> at
>> org.apache.axis2.deployment.DeploymentE

Re: [Dev] [EMM] Errors when creating secondary user store

2015-06-04 Thread Amalka Subasinghe
Hi,

I could see secondary domain and AD users with following config. But that
config contains some properties with spaces. isn't this something we need
to fix?



WSO2.ORG
false
*false*
false
CN=Administrator,CN=Users,DC=wso2,DC=test
  *  CN=Administrator,CN=Users,DC=wso2,DC=test*
ldaps://192.168.18.13:636
*ldaps://192.168.18.13:636
*
pass#word2
  *  pass#word2*
CN=Users,DC=wso2,DC=test
  *  CN=Users,DC=wso2,DC=test*
PLAIN_TEXT


*  (&(objectClass=user)(cn=?))(objectClass=user)user*
user
cn
  *  cn*
false
512
(objectClass=user)
(&(objectClass=user)(cn=?))
[a-zA-Z0-9._-|//]{3,30}$
^[\S]{3,30}$
^[\S]{5,30}$
^[\S]{3,30}$
[a-zA-Z0-9._-|//]{3,30}$
true
true
true
CN=Users,DC=WSO2,DC=Com
group
cn
cn
ou=SharedGroups,dc=wso2,dc=org
groups
(object=organizationalUnit)
ou
organizationalUnit
member
(objectcategory=group)
(&(objectClass=group)(cn=?))
true
follow
true
100
100
false
AD2

 


On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe  wrote:

> Hi,
>
> I'm trying to setup AD as secondary user store in EMM 1.1.0.
>
> When I try to create it via UI it creates the xml file as [1]. each
> property contains a space between words
> then the carbon log gives an error [2] saying "Required ConnectionURL
> property is not set at the LDAP configurations"
> Then I removed the space in between property "Connection URL" and save.
> Then carbon log gives another error [3] - "Required mandatory property
> Connection URL is not defined!"
> So I gave both "Connection URL" and "ConnectionURL" in xml file to solve
> the issue with ConnectionURL
>
> Same as above, I had to specify the same property with and without space
> to fix the errors in carbon log and there were some properties missing in
> the xml file too. had to add those manually.
> [4] shows the xml file after fixing all the errors. [missing properties
> shows in red color.]
>
> Still I can't see the Secondary user domain and users of the AD in users
> page. How can I fix this?
>
> [1]
>
>  class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
>   CN=Administrator,CN=Users,DC=wso2,DC=test
>   ldaps://192.168.18.13:636
>   pass#word2
>   CN=Users,DC=wso2,DC=test
>   false
>   (objectClass=user)
>   cn
>   (&(objectClass=user)(cn=?))
>   user
>   group
>   100
>   100
>   true
>   false
>   true
>   CN=Users,DC=WSO2,DC=Com
>   (objectcategory=group)
>   cn
>   member
>   
>   (&(objectClass=group)(cn=?))
>   PLAIN_TEXT
>   ^[\S]{5,30}$
>   ^[\S]{3,30}$
>   [a-zA-Z0-9._-|//]{3,30}$
>   ^[\S]{3,30}$
>   [a-zA-Z0-9._-|//]{3,30}$
>   true
>   uid={0},ou=Users,dc=wso2,dc=org
>   true
>   WSO2.ORG
>   false
>   cn
>   false
>   512
>   follow
>   true
>   AD
>   
> 
>
> [2]
>
> [2015-06-04 11:32:59,024] ERROR
> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Cannot
> create org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at
> org.wso2.carbon.user.core.common.AbstractUserStoreManager.createSecondaryUserStoreManager(AbstractUserStoreManager.java:3469)
> at
> org.wso2.carbon.user.core.common.AbstractUserStoreManager.addSecondaryUserStoreManager(AbstractUserStoreManager.java:3525)
> at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:65)
> at
> org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer.deploy(UserStoreConfigurationDeployer.java:58)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
> at
> org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at
> org.wso2.carbon

[Dev] [EMM] Errors when creating secondary user store

2015-06-03 Thread Amalka Subasinghe
Hi,

I'm trying to setup AD as secondary user store in EMM 1.1.0.

When I try to create it via UI it creates the xml file as [1]. each
property contains a space between words
then the carbon log gives an error [2] saying "Required ConnectionURL
property is not set at the LDAP configurations"
Then I removed the space in between property "Connection URL" and save.
Then carbon log gives another error [3] - "Required mandatory property
Connection URL is not defined!"
So I gave both "Connection URL" and "ConnectionURL" in xml file to solve
the issue with ConnectionURL

Same as above, I had to specify the same property with and without space to
fix the errors in carbon log and there were some properties missing in the
xml file too. had to add those manually.
[4] shows the xml file after fixing all the errors. [missing properties
shows in red color.]

Still I can't see the Secondary user domain and users of the AD in users
page. How can I fix this?

[1]


  CN=Administrator,CN=Users,DC=wso2,DC=test
  ldaps://192.168.18.13:636
  pass#word2
  CN=Users,DC=wso2,DC=test
  false
  (objectClass=user)
  cn
  (&(objectClass=user)(cn=?))
  user
  group
  100
  100
  true
  false
  true
  CN=Users,DC=WSO2,DC=Com
  (objectcategory=group)
  cn
  member
  
  (&(objectClass=group)(cn=?))
  PLAIN_TEXT
  ^[\S]{5,30}$
  ^[\S]{3,30}$
  [a-zA-Z0-9._-|//]{3,30}$
  ^[\S]{3,30}$
  [a-zA-Z0-9._-|//]{3,30}$
  true
  uid={0},ou=Users,dc=wso2,dc=org
  true
  WSO2.ORG
  false
  cn
  false
  512
  follow
  true
  AD
  


[2]

[2015-06-04 11:32:59,024] ERROR
{org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Cannot
create org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.createSecondaryUserStoreManager(AbstractUserStoreManager.java:3469)
at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.addSecondaryUserStoreManager(AbstractUserStoreManager.java:3525)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:65)
at
org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer.deploy(UserStoreConfigurationDeployer.java:58)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
at
org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.Filter