Re: [Carbon-dev] LDAP configuration with different attribute names from Admin and Standard Users

2010-07-16 Thread Asela Pathberiya
Hi Victor,

If you are using mail as the "UserNameAttribute", you must add following
additional property in your LDAP configuration. Then you would be able to
login to IS with your email.

true

Thanks,
Asela.


2010/7/16 Víctor Álvarez 

> can't understand what is happening then...
>
> the IS is connected to the LDAP seems correctly:
>
>
>  admin
> 
>  valva...@fje.cat
>  
> 
>
>
> ldap://79.XXX.XXX.XX:389^M
> cn=admin,dc=fje,dc=cat^M
> ^M
>  name="UserSearchBase">ou=Educadores,ou=Joan23,dc=fje,dc=cat^M
>  name="UserNameListFilter">(objectClass=inetOrgPerson)^M
> mail^M
> false^M
>  name="GroupSearchBase">ou=Educadores,ou=Joan23,dc=fje,dc=cat^M
> (objectClass=inetOrgPerson)^M
> ou^M
> member^M
>
>
>
>
>
> If i try to login with valva...@fje.cat:
>
> [2010-07-16 12:34:43,891] ERROR -  System error while
> Authenticating/Authorizing User : Invalid domain name
> {org.wso2.carbon.core.services.authentication.AuthenticationAdmin}
> org.wso2.carbon.CarbonException: Invalid domain name
> at
> org.wso2.carbon.core.util.AnonymousSessionUtil.getRealmByTenantDomain(AnonymousSessionUtil.java:105)
> at
> org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:75)
>
> if i try to do with valvarez:
> [2010-07-16 12:36:23,743]  WARN -  Failed Administrator login attempt
> 'valvarez' at [2010-07-16 12:36:23,0731] from IP address 80.26.148.67
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>
>
>
> Any idea?
>
>
>
> On Fri, Jul 16, 2010 at 2:07 PM, Amila Jayasekara  wrote:
>
>> Hi Víctor,
>>Your user-mgt.xml seems to be correct. Answers are inline.
>> Thankx
>> AmilaJ
>>
>> Víctor Álvarez wrote:
>> >
>> > "This might be the reason for null result. Instead of the admin in
>> > your ConnectionName you need to have the user defined in user-mgt.xml
>> > in your LDAP UserSearchBase with appropriate UserNameFilter."
>> >
>> > The user defined in user-mgt.xml have to be a user on the user's tree?
>> > and this user have to be a inetOrgPerson
>> Yes, user must be in the user tree under search base "dc=fje,dc=cat" and
>> objectClass must be "intetOrgPerson". Thus what you specify as admin
>> user has to match with the mail attribute.
>> >
>> > the main attribute for user identification should be the mail.
>> >
>> > I attach the ldap tree structure.
>> >
>> > thanks for your help.
>> >
>> >
>> > On Fri, Jul 16, 2010 at 6:46 AM, Lahiru Gunathilake > > > wrote:
>> >
>> > Hi Victor,
>> >
>> > You configuration is having typo.
>> >
>> >
>> > > > class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
>> >
>> > x
>> > > > name="ConnectionName">cn=admin,dc=domain,dc=cat
>> > yy
>> > dc=fje,dc=cat
>> > > > name="UserNameListFilter">(objectClass=inetOrgPerson)
>> > mail
>> > false
>> > dc=domain,dc=cat
>> > > > name="GroupSearchFilter">(objectClass=groupOfNames)
>> > ou
>> > member
>> > 
>> >
>> > This might be the reason for null result. Instead of the admin in
>> > your ConnectionName you need to have the user defined in
>> > user-mgt.xml in your LDAP UserSearchBase with appropriate
>> > UserNameFilter.
>> >
>> > Lahiru
>> >
>> > Lahiru
>> >
>> >
>> > i get the error :
>> >
>> > Carbon cannot function without an Admin Username
>> > {org.wso2.carbon.user.core.ldap.LDAPUserStoreManager}
>> > [2010-07-15 14:02:41,741] ERROR -  Cannot create
>> > org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is
>> > : null {org.wso2.carbon.user.core.common.Defa
>> > ultRealm}
>> > java.lang.reflect.InvocationTargetException
>> > at
>> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> > Method)
>> > at
>> > sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
>> > Source)
>> > at
>> >
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>> > Source)
>> > at java.lang.reflect.Constructor.newInstance(Unknown
>> > Source)
>> > at
>> >
>> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149)
>> > at
>> >
>> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102)
>> > at
>> >
>> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68)
>> > at
>> >
>> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185)
>> > at
>> >
>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89)
>> > at
>> >
>> org.wso2.carbon.us

Re: [Carbon-dev] LDAP configuration with different attribute names from Admin and Standard Users

2010-07-16 Thread Víctor Álvarez
can't understand what is happening then...

the IS is connected to the LDAP seems correctly:


 admin

 valva...@fje.cat
 



ldap://79.XXX.XXX.XX:389^M
cn=admin,dc=fje,dc=cat^M
^M
ou=Educadores,ou=Joan23,dc=fje,dc=cat^M
(objectClass=inetOrgPerson)^M
mail^M
false^M
ou=Educadores,ou=Joan23,dc=fje,dc=cat^M
(objectClass=inetOrgPerson)^M
ou^M
member^M





If i try to login with valva...@fje.cat:

[2010-07-16 12:34:43,891] ERROR -  System error while
Authenticating/Authorizing User : Invalid domain name
{org.wso2.carbon.core.services.authentication.AuthenticationAdmin}
org.wso2.carbon.CarbonException: Invalid domain name
at
org.wso2.carbon.core.util.AnonymousSessionUtil.getRealmByTenantDomain(AnonymousSessionUtil.java:105)
at
org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:75)

if i try to do with valvarez:
[2010-07-16 12:36:23,743]  WARN -  Failed Administrator login attempt
'valvarez' at [2010-07-16 12:36:23,0731] from IP address 80.26.148.67
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}



Any idea?



On Fri, Jul 16, 2010 at 2:07 PM, Amila Jayasekara  wrote:

> Hi Víctor,
>Your user-mgt.xml seems to be correct. Answers are inline.
> Thankx
> AmilaJ
>
> Víctor Álvarez wrote:
> >
> > "This might be the reason for null result. Instead of the admin in
> > your ConnectionName you need to have the user defined in user-mgt.xml
> > in your LDAP UserSearchBase with appropriate UserNameFilter."
> >
> > The user defined in user-mgt.xml have to be a user on the user's tree?
> > and this user have to be a inetOrgPerson
> Yes, user must be in the user tree under search base "dc=fje,dc=cat" and
> objectClass must be "intetOrgPerson". Thus what you specify as admin
> user has to match with the mail attribute.
> >
> > the main attribute for user identification should be the mail.
> >
> > I attach the ldap tree structure.
> >
> > thanks for your help.
> >
> >
> > On Fri, Jul 16, 2010 at 6:46 AM, Lahiru Gunathilake  > > wrote:
> >
> > Hi Victor,
> >
> > You configuration is having typo.
> >
> >
> >  > class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
> >
> > x
> >  > name="ConnectionName">cn=admin,dc=domain,dc=cat
> > yy
> > dc=fje,dc=cat
> >  > name="UserNameListFilter">(objectClass=inetOrgPerson)
> > mail
> > false
> > dc=domain,dc=cat
> >  > name="GroupSearchFilter">(objectClass=groupOfNames)
> > ou
> > member
> > 
> >
> > This might be the reason for null result. Instead of the admin in
> > your ConnectionName you need to have the user defined in
> > user-mgt.xml in your LDAP UserSearchBase with appropriate
> > UserNameFilter.
> >
> > Lahiru
> >
> > Lahiru
> >
> >
> > i get the error :
> >
> > Carbon cannot function without an Admin Username
> > {org.wso2.carbon.user.core.ldap.LDAPUserStoreManager}
> > [2010-07-15 14:02:41,741] ERROR -  Cannot create
> > org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is
> > : null {org.wso2.carbon.user.core.common.Defa
> > ultRealm}
> > java.lang.reflect.InvocationTargetException
> > at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> > at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > Source)
> > at
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> > Source)
> > at java.lang.reflect.Constructor.newInstance(Unknown
> > Source)
> > at
> >
> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149)
> > at
> >
> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102)
> > at
> >
> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68)
> > at
> >
> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185)
> > at
> >
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89)
> > at
> >
> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28)
> >
> >
> >
> > Is not possible to identify admin user and standard users
> > without same attribute name? Carbon is trying to user
> > the UserNameAttribute on the LDAP connection?
> >
> > Thanks in advance
> >
> > --
> > Víctor Álvarez
> > Incoming IT www.incomingIT.com 
> > www.twitter.com/incomingIT
> > 

Re: [Carbon-dev] LDAP configuration with different attribute names from Admin and Standard Users

2010-07-16 Thread Amila Jayasekara
Hi Víctor,
Your user-mgt.xml seems to be correct. Answers are inline.
Thankx
AmilaJ

Víctor Álvarez wrote:
>
> "This might be the reason for null result. Instead of the admin in 
> your ConnectionName you need to have the user defined in user-mgt.xml 
> in your LDAP UserSearchBase with appropriate UserNameFilter."
>
> The user defined in user-mgt.xml have to be a user on the user's tree? 
> and this user have to be a inetOrgPerson
Yes, user must be in the user tree under search base "dc=fje,dc=cat" and 
objectClass must be "intetOrgPerson". Thus what you specify as admin 
user has to match with the mail attribute.
>
> the main attribute for user identification should be the mail.
>
> I attach the ldap tree structure.
>
> thanks for your help.
>
>
> On Fri, Jul 16, 2010 at 6:46 AM, Lahiru Gunathilake  > wrote:
>
> Hi Victor,
>
> You configuration is having typo.
>
>
>  class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
>
> x
>  name="ConnectionName">cn=admin,dc=domain,dc=cat
> yy
> dc=fje,dc=cat
>  name="UserNameListFilter">(objectClass=inetOrgPerson)
> mail
> false
> dc=domain,dc=cat
>  name="GroupSearchFilter">(objectClass=groupOfNames)
> ou
> member
> 
>
> This might be the reason for null result. Instead of the admin in
> your ConnectionName you need to have the user defined in
> user-mgt.xml in your LDAP UserSearchBase with appropriate
> UserNameFilter.
>
> Lahiru
>
> Lahiru  
>
>
> i get the error :
>
> Carbon cannot function without an Admin Username
> {org.wso2.carbon.user.core.ldap.LDAPUserStoreManager}
> [2010-07-15 14:02:41,741] ERROR -  Cannot create
> org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is
> : null {org.wso2.carbon.user.core.common.Defa
> ultRealm}
> java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown
> Source)
> at
> 
> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149)
> at
> 
> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102)
> at
> 
> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68)
> at
> 
> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185)
> at
> 
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89)
> at
> 
> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28)
>
>
>
> Is not possible to identify admin user and standard users
> without same attribute name? Carbon is trying to user
> the UserNameAttribute on the LDAP connection?
>
> Thanks in advance
>
> -- 
> Víctor Álvarez
> Incoming IT www.incomingIT.com 
> www.twitter.com/incomingIT
> 
> Escribiendo en y sobre Accesibilidad Web:
> http://accesibilidad.blogspot.com
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org 
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
>
>
> -- 
> Lahiru Gunathilake
> Senior Software Engineer - WSO2 Inc. www.wso2.com
> 
>
> Email:lah...@wso2.com  Blog:
> www.lahiru.org 
> Mobile: +94716381143
>
> Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org 
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
>
>
> -- 
> Víctor Álvarez
> Incoming IT www.incomingIT.com 
> www.twitter.com/incomingIT 
> Escribiendo en y sobre Accesibilidad Web: 
> http://accesibilidad.blogspot.com
>
>
>
> 
>
> 
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>

Re: [Carbon-dev] LDAP configuration with different attribute names from Admin and Standard Users

2010-07-15 Thread Víctor Álvarez
"This might be the reason for null result. Instead of the admin in your
ConnectionName you need to have the user defined in user-mgt.xml in your
LDAP UserSearchBase with appropriate UserNameFilter."

The user defined in user-mgt.xml have to be a user on the user's tree? and
this user have to be a inetOrgPerson

the main attribute for user identification should be the mail.

I attach the ldap tree structure.

thanks for your help.


On Fri, Jul 16, 2010 at 6:46 AM, Lahiru Gunathilake  wrote:

> Hi Victor,
>
> You configuration is having typo.
>
>
> > class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
>>
> x
>> cn=admin,dc=domain,dc=cat
>> yy
>> dc=fje,dc=cat
>> (objectClass=inetOrgPerson)
>> 
>> mail
>> false
>> dc=domain,dc=cat
>> (objectClass=groupOfNames)
>> ou
>> member
>> 
>>
>> This might be the reason for null result. Instead of the admin in your
> ConnectionName you need to have the user defined in user-mgt.xml in your
> LDAP UserSearchBase with appropriate UserNameFilter.
>
> Lahiru
>
> Lahiru
>
>>
>> i get the error :
>>
>> Carbon cannot function without an Admin Username
>> {org.wso2.carbon.user.core.ldap.LDAPUserStoreManager}
>> [2010-07-15 14:02:41,741] ERROR -  Cannot create
>> org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is : null
>> {org.wso2.carbon.user.core.common.Defa
>> ultRealm}
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
>> Source)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
>> at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89)
>> at
>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28)
>>
>>
>>
>> Is not possible to identify admin user and standard users without same
>> attribute name? Carbon is trying to user the UserNameAttribute on the LDAP
>> connection?
>>
>> Thanks in advance
>>
>> --
>> Víctor Álvarez
>> Incoming IT www.incomingIT.com
>> www.twitter.com/incomingIT
>> Escribiendo en y sobre Accesibilidad Web:
>> http://accesibilidad.blogspot.com
>>
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Lahiru Gunathilake
> Senior Software Engineer - WSO2 Inc. www.wso2.com
>
> Email:lah...@wso2.com  Blog: www.lahiru.org
> Mobile: +94716381143
>
> Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Víctor Álvarez
Incoming IT www.incomingIT.com
www.twitter.com/incomingIT
Escribiendo en y sobre Accesibilidad Web: http://accesibilidad.blogspot.com
<>___
Carbon-dev mailing list
Carbon-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] LDAP configuration with different attribute names from Admin and Standard Users

2010-07-15 Thread Lahiru Gunathilake
Hi Victor,

You configuration is having typo.


 class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
>
x
> cn=admin,dc=domain,dc=cat
> yy
> dc=fje,dc=cat
> (objectClass=inetOrgPerson)
> mail
> false
> dc=domain,dc=cat
> (objectClass=groupOfNames)
> ou
> member
> 
>
> This might be the reason for null result. Instead of the admin in your
ConnectionName you need to have the user defined in user-mgt.xml in your
LDAP UserSearchBase with appropriate UserNameFilter.

Lahiru

Lahiru

>
> i get the error :
>
> Carbon cannot function without an Admin Username
> {org.wso2.carbon.user.core.ldap.LDAPUserStoreManager}
> [2010-07-15 14:02:41,741] ERROR -  Cannot create
> org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is : null
> {org.wso2.carbon.user.core.common.Defa
> ultRealm}
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at
> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149)
> at
> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102)
> at
> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89)
> at
> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28)
>
>
>
> Is not possible to identify admin user and standard users without same
> attribute name? Carbon is trying to user the UserNameAttribute on the LDAP
> connection?
>
> Thanks in advance
>
> --
> Víctor Álvarez
> Incoming IT www.incomingIT.com
> www.twitter.com/incomingIT
> Escribiendo en y sobre Accesibilidad Web:
> http://accesibilidad.blogspot.com
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Lahiru Gunathilake
Senior Software Engineer - WSO2 Inc. www.wso2.com

Email:lah...@wso2.com  Blog: www.lahiru.org
Mobile: +94716381143

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] LDAP configuration with different attribute names from Admin and Standard Users

2010-07-15 Thread Ruwan Linton
I guess you have followed the guide here [1];

Have you changed the AdminUser in the user-mgt.xml configuration on the 
top, it has to be an existing user in the LDAP user store.

Thanks,
Ruwan

[1] - 
http://wso2.org/project/solutions/identity/3.0.0/docs/user-core/admin_guide.html#LDAP

Víctor Álvarez wrote:
> Hello,
>
> I've got this running config :
>
>  class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
> x
> cn=admin,dc=domain,dc=cat
> yy
> dc=fje,dc=cat
> (objectClass=inetOrgPerson)
> cn
> false
> dc=domain,dc=cat
> (objectClass=groupOfNames)
> ou
> member
> 
>
>
> the user admin is a securityObject on LDAP while standar users are 
> inerOrgPerson
>
> i would like to identify the users for a special attribute (mail)
>
> but if i try this configuration :
>
>  class="org.wso2.carbon.user.core.ldap.LDAPUserStoreManager">
> x
> cn=admin,dc=domain,dc=cat
> yy
> dc=fje,dc=cat
> (objectClass=inetOrgPerson)
> mail
> false
> dc=domain,dc=cat
> (objectClass=groupOfNames)
> ou
> member
> 
>
>
> i get the error :
>
> Carbon cannot function without an Admin Username 
> {org.wso2.carbon.user.core.ldap.LDAPUserStoreManager}
> [2010-07-15 14:02:41,741] ERROR -  Cannot create 
> org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is : null 
> {org.wso2.carbon.user.core.common.Defa
> ultRealm}
> java.lang.reflect.InvocationTargetException
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at 
> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149)
> at 
> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102)
> at 
> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68)
> at 
> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185)
> at 
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89)
> at 
> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28)
>
>
>
> Is not possible to identify admin user and standard users without same 
> attribute name? Carbon is trying to user the UserNameAttribute on the 
> LDAP connection?
>
> Thanks in advance
>
> -- 
> Víctor Álvarez
> Incoming IT www.incomingIT.com 
> www.twitter.com/incomingIT 
> Escribiendo en y sobre Accesibilidad Web: 
> http://accesibilidad.blogspot.com
>
>
> 
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>   


-- 
Ruwan Linton
Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.com

Lean . Enterprise . Middleware

phone: +1 408 754 7388 ext 51789
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
tweet: http://twitter.com/ruwanlinton


___
Carbon-dev mailing list
Carbon-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] LDAP configuration with different attribute names from Admin and Standard Users

2010-07-15 Thread Víctor Álvarez
Hello,

I've got this running config :


x
cn=admin,dc=domain,dc=cat
yy
dc=fje,dc=cat
(objectClass=inetOrgPerson)
cn
false
dc=domain,dc=cat
(objectClass=groupOfNames)
ou
member



the user admin is a securityObject on LDAP while standar users are
inerOrgPerson

i would like to identify the users for a special attribute (mail)

but if i try this configuration :


x
cn=admin,dc=domain,dc=cat
yy
dc=fje,dc=cat
(objectClass=inetOrgPerson)
mail
false
dc=domain,dc=cat
(objectClass=groupOfNames)
ou
member



i get the error :

Carbon cannot function without an Admin Username
{org.wso2.carbon.user.core.ldap.LDAPUserStoreManager}
[2010-07-15 14:02:41,741] ERROR -  Cannot create
org.wso2.carbon.user.core.ldap.LDAPUserStoreManager . Error is : null
{org.wso2.carbon.user.core.common.Defa
ultRealm}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:149)
at
org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:102)
at
org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:68)
at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:185)
at
org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89)
at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28)



Is not possible to identify admin user and standard users without same
attribute name? Carbon is trying to user the UserNameAttribute on the LDAP
connection?

Thanks in advance

-- 
Víctor Álvarez
Incoming IT www.incomingIT.com
www.twitter.com/incomingIT
Escribiendo en y sobre Accesibilidad Web: http://accesibilidad.blogspot.com
___
Carbon-dev mailing list
Carbon-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev