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?

UserStoreManager
class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager

Property name=defaultRealmNameWSO2.ORG/Property
Property name=Disabledfalse/Property
*Property name=Diabledfalse/Property*
Property name=kdcEnabledfalse/Property
Property
name=ConnectionNameCN=Administrator,CN=Users,DC=wso2,DC=test/Property
  *  Property name=Connection
NameCN=Administrator,CN=Users,DC=wso2,DC=test/Property*
Property name=ConnectionURLldaps://192.168.18.13:636/Property
*Property name=Connection URLldaps://192.168.18.13:636
http://192.168.18.13:636/Property*
Property name=ConnectionPasswordpass#word2/Property
  *  Property name=Connection Passwordpass#word2/Property*
Property name=UserSearchBaseCN=Users,DC=wso2,DC=test/Property
  *  Property name=User Search BaseCN=Users,DC=wso2,DC=test/Property*
Property name=passwordHashMethodPLAIN_TEXT/Property


*  Property name=User Search
Filter(amp;(objectClass=user)(cn=?))/PropertyProperty name=User
Object Class(objectClass=user)/PropertyProperty name=User Entry
Object Classuser/Property*
Property name=UserEntryObjectClassuser/Property
Property name=UserNameAttributecn/Property
  *  Property name=Username Attributecn/Property*
Property name=isADLDSRolefalse/Property
Property name=userAccountControl512/Property
Property name=UserNameListFilter(objectClass=user)/Property
Property
name=UserNameSearchFilter(amp;(objectClass=user)(cn=?))/Property
Property name=UsernameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
Property name=UsernameJavaScriptRegEx^[\S]{3,30}$/Property
Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property
Property name=RolenameJavaScriptRegEx^[\S]{3,30}$/Property
Property name=RolenameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
Property name=ReadGroupstrue/Property
Property name=WriteGroupstrue/Property
Property name=EmptyRolesAllowedtrue/Property
Property name=GroupSearchBaseCN=Users,DC=WSO2,DC=Com/Property
Property name=GroupEntryObjectClassgroup/Property
Property name=GroupNameAttributecn/Property
Property name=SharedGroupNameAttributecn/Property
Property
name=SharedGroupSearchBaseou=SharedGroups,dc=wso2,dc=org/Property
Property name=SharedGroupEntryObjectClassgroups/Property
Property
name=SharedTenantNameListFilter(object=organizationalUnit)/Property
Property name=SharedTenantNameAttributeou/Property
Property name=SharedTenantObjectClassorganizationalUnit/Property
Property name=MembershipAttributemember/Property
Property name=GroupNameListFilter(objectcategory=group)/Property
Property
name=GroupNameSearchFilter(amp;(objectClass=group)(cn=?))/Property
Property name=UserRolesCacheEnabledtrue/Property
Property name=Referralfollow/Property
Property name=BackLinksEnabledtrue/Property
Property name=MaxRoleNameListLength100/Property
Property name=MaxUserNameListLength100/Property
Property name=SCIMEnabledfalse/Property
Property name=DomainNameAD2/Property

 /UserStoreManager


On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe ama...@wso2.com 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]

 ?xml version=1.0 encoding=UTF-8?UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
   Property name=*Connection Name*
 CN=Administrator,CN=Users,DC=wso2,DC=test/Property
   Property name=Connection URLldaps://192.168.18.13:636/Property
   Property name=Connection Passwordpass#word2/Property
   Property name=User Search BaseCN=Users,DC=wso2,DC=test/Property
   Property name=Diabledfalse/Property
   Property name=User Object Class(objectClass=user)/Property
   Property name=Username Attributecn/Property
   Property name=User Search
 Filter(amp;(objectClass=user)(cn=?))/Property
   Property name=User Entry Object Classuser/Property
   Property 

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

2015-06-04 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]

?xml version=1.0 encoding=UTF-8?UserStoreManager
class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
  Property name=*Connection Name*
CN=Administrator,CN=Users,DC=wso2,DC=test/Property
  Property name=Connection URLldaps://192.168.18.13:636/Property
  Property name=Connection Passwordpass#word2/Property
  Property name=User Search BaseCN=Users,DC=wso2,DC=test/Property
  Property name=Diabledfalse/Property
  Property name=User Object Class(objectClass=user)/Property
  Property name=Username Attributecn/Property
  Property name=User Search
Filter(amp;(objectClass=user)(cn=?))/Property
  Property name=User Entry Object Classuser/Property
  Property name=Group Entry Object Classgroup/Property
  Property name=Maximum User List Length100/Property
  Property name=Maximum Role List Length100/Property
  Property name=Enable User Role Cachetrue/Property
  Property name=Enable SCIMfalse/Property
  Property name=ReadGroupstrue/Property
  Property name=Group Search BaseCN=Users,DC=WSO2,DC=Com/Property
  Property name=Group Object Class(objectcategory=group)/Property
  Property name=Group Name Attributecn/Property
  Property name=Membership Attributemember/Property
  Property name=Member Of Attribute/
  Property name=Group Search
Filter(amp;(objectClass=group)(cn=?))/Property
  Property name=Password Hashing AlgorithmPLAIN_TEXT/Property
  Property name=Password RegEx (Javascript)^[\S]{5,30}$/Property
  Property name=Username RegEx (Javascript)^[\S]{3,30}$/Property
  Property name=Username RegEx
(Java)[a-zA-Z0-9._-|//]{3,30}$/Property
  Property name=Role Name RegEx (Javascript)^[\S]{3,30}$/Property
  Property name=Role Name RegEx
(Java)[a-zA-Z0-9._-|//]{3,30}$/Property
  Property name=Enable Write Groupstrue/Property
  Property name=User DN
Patternuid={0},ou=Users,dc=wso2,dc=org/Property
  Property name=Allow Empty Rolestrue/Property
  Property name=Default Realm NameWSO2.ORG/Property
  Property name=Enable KDCfalse/Property
  Property name=Display Name Attributecn/Property
  Property name=Is ADLDS Rolefalse/Property
  Property name=User Account Control512/Property
  Property name=Referralfollow/Property
  Property name=Enable Back Linkstrue/Property
  Property name=DomainNameAD/Property
  Property name=Description/
/UserStoreManager

[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

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 ama...@wso2.com 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?

 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager

 Property name=defaultRealmNameWSO2.ORG/Property
 Property name=Disabledfalse/Property
 *Property name=Diabledfalse/Property*

 Property name=kdcEnabledfalse/Property
 Property
 name=ConnectionNameCN=Administrator,CN=Users,DC=wso2,DC=test/Property
   *  Property name=Connection
 NameCN=Administrator,CN=Users,DC=wso2,DC=test/Property*
 Property name=ConnectionURLldaps://192.168.18.13:636/Property
 *Property name=Connection URLldaps://192.168.18.13:636
 http://192.168.18.13:636/Property*
 Property name=ConnectionPasswordpass#word2/Property
   *  Property name=Connection Passwordpass#word2/Property*
 Property name=UserSearchBaseCN=Users,DC=wso2,DC=test/Property
   *  Property name=User Search
 BaseCN=Users,DC=wso2,DC=test/Property*
 Property name=passwordHashMethodPLAIN_TEXT/Property


 *  Property name=User Search
 Filter(amp;(objectClass=user)(cn=?))/PropertyProperty name=User
 Object Class(objectClass=user)/PropertyProperty name=User Entry
 Object Classuser/Property*
 Property name=UserEntryObjectClassuser/Property
 Property name=UserNameAttributecn/Property
   *  Property name=Username Attributecn/Property*
 Property name=isADLDSRolefalse/Property
 Property name=userAccountControl512/Property
 Property name=UserNameListFilter(objectClass=user)/Property
 Property
 name=UserNameSearchFilter(amp;(objectClass=user)(cn=?))/Property
 Property name=UsernameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
 Property name=UsernameJavaScriptRegEx^[\S]{3,30}$/Property
 Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property
 Property name=RolenameJavaScriptRegEx^[\S]{3,30}$/Property
 Property name=RolenameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
 Property name=ReadGroupstrue/Property
 Property name=WriteGroupstrue/Property
 Property name=EmptyRolesAllowedtrue/Property
 Property name=GroupSearchBaseCN=Users,DC=WSO2,DC=Com/Property
 Property name=GroupEntryObjectClassgroup/Property
 Property name=GroupNameAttributecn/Property
 Property name=SharedGroupNameAttributecn/Property
 Property
 name=SharedGroupSearchBaseou=SharedGroups,dc=wso2,dc=org/Property
 Property name=SharedGroupEntryObjectClassgroups/Property
 Property
 name=SharedTenantNameListFilter(object=organizationalUnit)/Property
 Property name=SharedTenantNameAttributeou/Property
 Property name=SharedTenantObjectClassorganizationalUnit/Property
 Property name=MembershipAttributemember/Property
 Property name=GroupNameListFilter(objectcategory=group)/Property
 Property
 name=GroupNameSearchFilter(amp;(objectClass=group)(cn=?))/Property
 Property name=UserRolesCacheEnabledtrue/Property
 Property name=Referralfollow/Property
 Property name=BackLinksEnabledtrue/Property
 Property name=MaxRoleNameListLength100/Property
 Property name=MaxUserNameListLength100/Property
 Property name=SCIMEnabledfalse/Property
 Property name=DomainNameAD2/Property

  /UserStoreManager


 On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe ama...@wso2.com
 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]

 ?xml version=1.0 encoding=UTF-8?UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
   Property name=*Connection Name*
 CN=Administrator,CN=Users,DC=wso2,DC=test/Property
   Property name=Connection URLldaps://192.168.18.13:636
 /Property
   Property name=Connection Passwordpass#word2/Property
   Property name=User Search
 

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 ino...@wso2.com 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 ama...@wso2.com 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?

 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager

 Property name=defaultRealmNameWSO2.ORG/Property
 Property name=Disabledfalse/Property
 *Property name=Diabledfalse/Property*

 Property name=kdcEnabledfalse/Property
 Property
 name=ConnectionNameCN=Administrator,CN=Users,DC=wso2,DC=test/Property
   *  Property name=Connection
 NameCN=Administrator,CN=Users,DC=wso2,DC=test/Property*
 Property name=ConnectionURLldaps://192.168.18.13:636/Property
 *Property name=Connection URLldaps://192.168.18.13:636
 http://192.168.18.13:636/Property*
 Property name=ConnectionPasswordpass#word2/Property
   *  Property name=Connection Passwordpass#word2/Property*
 Property name=UserSearchBaseCN=Users,DC=wso2,DC=test/Property
   *  Property name=User Search
 BaseCN=Users,DC=wso2,DC=test/Property*
 Property name=passwordHashMethodPLAIN_TEXT/Property


 *  Property name=User Search
 Filter(amp;(objectClass=user)(cn=?))/PropertyProperty name=User
 Object Class(objectClass=user)/PropertyProperty name=User Entry
 Object Classuser/Property*
 Property name=UserEntryObjectClassuser/Property
 Property name=UserNameAttributecn/Property
   *  Property name=Username Attributecn/Property*
 Property name=isADLDSRolefalse/Property
 Property name=userAccountControl512/Property
 Property name=UserNameListFilter(objectClass=user)/Property
 Property
 name=UserNameSearchFilter(amp;(objectClass=user)(cn=?))/Property
 Property name=UsernameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
 Property name=UsernameJavaScriptRegEx^[\S]{3,30}$/Property
 Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property
 Property name=RolenameJavaScriptRegEx^[\S]{3,30}$/Property
 Property name=RolenameJavaRegEx[a-zA-Z0-9._-|//]{3,30}$/Property
 Property name=ReadGroupstrue/Property
 Property name=WriteGroupstrue/Property
 Property name=EmptyRolesAllowedtrue/Property
 Property name=GroupSearchBaseCN=Users,DC=WSO2,DC=Com/Property
 Property name=GroupEntryObjectClassgroup/Property
 Property name=GroupNameAttributecn/Property
 Property name=SharedGroupNameAttributecn/Property
 Property
 name=SharedGroupSearchBaseou=SharedGroups,dc=wso2,dc=org/Property
 Property name=SharedGroupEntryObjectClassgroups/Property
 Property
 name=SharedTenantNameListFilter(object=organizationalUnit)/Property
 Property name=SharedTenantNameAttributeou/Property
 Property name=SharedTenantObjectClassorganizationalUnit/Property
 Property name=MembershipAttributemember/Property
 Property name=GroupNameListFilter(objectcategory=group)/Property
 Property
 name=GroupNameSearchFilter(amp;(objectClass=group)(cn=?))/Property
 Property name=UserRolesCacheEnabledtrue/Property
 Property name=Referralfollow/Property
 Property name=BackLinksEnabledtrue/Property
 Property name=MaxRoleNameListLength100/Property
 Property name=MaxUserNameListLength100/Property
 Property name=SCIMEnabledfalse/Property
 Property name=DomainNameAD2/Property

  /UserStoreManager


 On Thu, Jun 4, 2015 at 12:07 PM, Amalka Subasinghe ama...@wso2.com
 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]

 ?xml version=1.0 encoding=UTF-8?UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager
   Property name=*Connection Name*
 CN=Administrator,CN=Users,DC=wso2,DC=test/Property
   Property name=Connection URLldaps://192.168.18.13:636
 /Property