Hi,

Thank you for reply.

What are the properties to use in the jetspeed.properties?
The default one only have base= sevenSeas, ou=roles, ou=groups, and
ou=users.

I've also created my own ldif file as well base on the jetspeed.properties
above.
and i was able to login.
But i can't change the user role.
if i want user cnguyen to be an admin, by changing the role in jetspeed, no
go.
only admin user can be admin.
You said you were able to do it, how did you do that?





jerome.dupont wrote:
> 
> Since this summer, I use my own schema (changing xml ldap ), so I don't
> have anymore schema import problem :-)
> But if I remember well, I imported the schema in apache
> 
> You can find  it in the directory
> components/jetspeed-security-schema/src/main/schema/jetspeed.schema)
> and converted it to ldif file
> 
> You can find on the net tools to convert schemas to ldif
> 
> Alternatively, I found on my disk a ldif I had generated in July (happy
> holidays this summer :-), this is its content (normally it's importable in
> apache 1.5.5, but I'm not sure).
> After that you should be able to create user from jetspeed.
> 
> Sorry for the long post, but I don't know how to post an attached file
> 
> # Generated by Apache Directory Studio on 31 juillet 2011 21:37:20
> 
> # SCHEMA "JETSPEED"
> dn: cn=jetspeed, ou=schema
> objectclass: metaSchema
> objectclass: top
> cn: jetspeed
> m-dependencies: system
> m-dependencies: inetorgperson
> m-dependencies: core
> 
> dn: ou=attributeTypes, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: attributetypes
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.3.1, ou=attributeTypes, cn=jetspeed,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.3.1
> m-name: j2-classname
> m-description: The java class name of the object.
> m-equality: caseIgnoreIA5Match
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
> m-length: 0
> m-singleValue: TRUE
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.3.2, ou=attributeTypes, cn=jetspeed,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.3.2
> m-name: j2-action
> m-description: An action associated with a permission. This is a
> multi-valued at
>  tribute.
> m-equality: caseIgnoreIA5Match
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
> m-length: 0
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.3.3, ou=attributeTypes, cn=jetspeed,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.3.3
> m-name: j2-role
> m-description: The UID of an associated Role. This is a multi-valued
> attribute.
> m-equality: caseExactIA5Match
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
> m-length: 0
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.3.4, ou=attributeTypes, cn=jetspeed,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.3.4
> m-name: j2-group
> m-description: The UID of an associated Group. This is a multi-valued
> attribute.
> 
> m-equality: caseExactIA5Match
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
> m-length: 0
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.3.5, ou=attributeTypes, cn=jetspeed,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.3.5
> m-name: j2-permission
> m-description: The UID of an associated Permission
> m-equality: caseExactIA5Match
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
> m-length: 0
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.3.6, ou=attributeTypes, cn=jetspeed,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.3.6
> m-name: creation-date
> m-description: create date
> m-equality: caseIgnoreIA5Match
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
> m-length: 0
> m-singleValue: TRUE
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.3.7, ou=attributeTypes, cn=jetspeed,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.3.7
> m-name: modified-date
> m-description: modified date
> m-equality: caseIgnoreIA5Match
> m-syntax: 1.3.6.1.4.1.1466.115.121.1.26
> m-length: 0
> m-singleValue: TRUE
> 
> dn: ou=comparators, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: comparators
> 
> dn: ou=ditContentRules, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: ditcontentrules
> 
> dn: ou=ditStructureRules, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: ditstructurerules
> 
> dn: ou=matchingRules, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: matchingrules
> 
> dn: ou=matchingRuleUse, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: matchingruleuse
> 
> dn: ou=nameForms, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: nameforms
> 
> dn: ou=normalizers, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: normalizers
> 
> dn: ou=objectClasses, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: objectClasses
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.4.1, ou=objectClasses, cn=jetspeed,
> ou=schema
> objectclass: metaObjectClass
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.4.1
> m-name: jetspeed-2-group
> m-description: Jetspeed-2 group
> m-supObjectClass: groupOfUniqueNames
> m-must: j2-classname
> m-must: uid
> m-may: j2-role
> m-may: creation-date
> m-may: modified-date
> m-may: cn
> m-may: ou
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.4.3, ou=objectClasses, cn=jetspeed,
> ou=schema
> objectclass: metaObjectClass
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.4.3
> m-name: jetspeed-2-role
> m-description: Jetspeed-2 role
> m-supObjectClass: groupOfUniqueNames
> m-must: j2-classname
> m-must: uid
> m-may: creation-date
> m-may: modified-date
> m-may: cn
> m-may: ou
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.4.4, ou=objectClasses, cn=jetspeed,
> ou=schema
> objectclass: metaObjectClass
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.4.4
> m-name: jetspeed-2-user
> m-description: Jetspeed-2 user
> m-supObjectClass: inetOrgPerson
> m-must: cn
> m-must: uid
> m-may: j2-role
> m-may: j2-group
> m-may: j2-permission
> m-may: creation-date
> m-may: modified-date
> 
> dn: m-oid=1.3.6.1.4.1.8100.1.2.4.2, ou=objectClasses, cn=jetspeed,
> ou=schema
> objectclass: metaObjectClass
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.8100.1.2.4.2
> m-name: jetspeed-2-permission
> m-description: Jetspeed-2 permission
> m-must: j2-classname
> m-must: uid
> m-may: j2-action
> m-may: creation-date
> m-may: modified-date
> 
> dn: ou=syntaxCheckers, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: syntaxcheckers
> 
> dn: ou=syntaxes, cn=jetspeed, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: syntaxes
> 
> 
> 
> 
> 
> |----------->
> |           |
> |           |
> |           |
> |           |
> |           |
> |----------->
>  
> >--------------------------------------------------------------------------------------------------------------------------------------------|
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |  Message de : cnguyen8 <cnguy...@hotmail.com>                             
>                                                                 
> |
>   |                        01/03/2012 20:31                                   
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                Veuillez répondre à "Jetspeed Users
> List" <jetspeed-user@portals.apache.org>                                |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                             
> Pour|
>   |           jetspeed-user@portals.apache.org                                
>                                                                 
> |
>   |                                                                           
>                                                            
> Copie|
>   |                                                                           
>                                                                 
> |
>   |                                                                           
>                                                            
> Objet|
>   |           Re: ldap configuration: a configuration starting to work        
>                                                                 
> |
>   |                                                                           
>                                                                 
> |
>  
> >--------------------------------------------------------------------------------------------------------------------------------------------|
> 
> 
> 
> 
> 
> Hi ,
> 
> I'm trying to follow you guide but i'm still not fully understand.
> I'm new with apacheDS and jetspeed.
> 
> Current setup -
> Jetspeed 2.2.2
> ApacheDS 1.5.5
> 
> I've configured so that Jetspeed 2.2.2 will use LDAP server.
> on ApacheDS I have it stand alone running in the background.
> Using Apache Studio, I connect to ApachedS.
> From ApacheDS console, I can see that when ever i try to login into
> jetspeed.
> It display information that user try to login but fail.
> 
> So I'm thinking that I need to load Jetspeed 2.2.2 schema into ApacheDS.
> Using the jetspeed schema provided at the
> http://portals.apache.org/jetspeed-2/deployguide/ldap.html doesn't do
> anything.  So when i try to import setup2.ldif, it fail because ApacheDS
> doesn't know j2-classname:
> 
> This is where it starting to fail to import:
> 
> #!RESULT ERROR
> #!CONNECTION ldap://localhost:10389
> #!DATE 2012-03-01T13:46:47.187
> #!ERROR [LDAP: error code 16 - NO_SUCH_ATTRIBUTE: failed for     Add
> Request
> : ClientEntry     dn: cn=accounting,ou=Groups,ou=rootOrg,o=sevenSeas
> objectClass: jetspeed-2-group     objectClass: groupOfUniqueNames
> objectClass: top     uid: accounting     uniquemember: user,local,sublocal
> 
> cn: accounting     j2-classname: accounting : OID for name
> 'jetspeed-2-group' was not found within the OID registry]
> dn: cn=accounting,ou=Groups,ou=rootOrg,o=sevenSeas
> objectClass: jetspeed-2-group
> objectClass: groupOfUniqueNames
> objectClass: top
> cn: accounting
> j2-classname: accounting
> uid: accounting
> uniquemember: user,local,sublocal
> 
> 
> Can you explain how did you manage to load this file?  Assume you did load
> jetspeed schema into apacheDS.  How did you do it?
> 
> I tried to manual create a user in the apacheDS, but login still fail.  It
> did display my login information use as username, surname and such, but
> with
> fail message.
> 
> Thanks
> 
> 
> 
> 
> 
> Exposition  Le Théâtre de la Huchette  - jusqu'au 8 avril 2012 - BnF -
> François-Mitterrand Avant d'imprimer, pensez à l'environnement. 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
> For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Re%3A-ldap-configuration%3A-a-configuration-starting-to-work-tp32354906p33429771.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to