Hello,

I have extended the MgnlUserManager class to synchronize the user from an LDAP 
server with the users from the Magnolia JCR. I have overwritten the getUser 
method to check the LDAP server for the user and if the user doesn't exists in 
the JCR it will be created and added to a security group. The problem is the 
addGroup method does not work: it cannot find the user. The 
RepositoryBackedSecurityManager.add() method contains a call to the 
findPrincipalNode method which returns null. This is strange because it runs an 
SQL which should return a result: select * from [mgnl:user] where name() = 
'peter.balazs' and isdescendantnode(['/admin'])
If I run this SQL in the Admin Central it returns correctly one node. Why 
doesn't it return a value in the method?

I will gladly post any of my code if this would help.

PS: the same problem is when trying to add a role to the user

Thanks in advance,
Peter

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=6c1bee79-e4bc-481e-a4af-d2065944176c


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to