Jahia Dev Forum > Permission

0 (0 Good)
0 (0 Bad)

Permission

by  bmp_spa »  2011/06/07 20:32

I add new ldap user via API and then I add the user to a ldap group with this code:

public static boolean _AddUserToGroup( String userdn, String groupdn ) {
// modifications for group and user
LDAPModification[] modGroup = new LDAPModification[1];

// Add modifications to modGroup
LDAPAttribute member = new LDAPAttribute(quot;member
  • Permission
    2011/06/07 20:32

    bmp_spa I add new ldap user via API and then I add the user to a ldap group with this code:<br/><br/> public static boolean _AddUserToGroup( String userdn, String groupdn ) {<br/> // modifications for group and user<br/> LDAPModification[] modGroup = new LDAPModification[1];<br/> <br/> // Add modifications to modGroup<br/> LDAPAttribute member = new LDAPAttribute(quot;member

  • Number of messages  4
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Permission

    by  pap@commaro.com »  2011/06/07 20:33

    Hello,

    for sure you need to flush the following caches:

    LDAPGroupsCache
    ProvidersGroupsCache

    If you find that you need to flush LDAPUsersCache, then you should also flush ProvidersUsersCache (but I think it is not necessary to flush these two caches if the new user-key did not exist before).

    Regards,
    Benjamin

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Permission

    by  bmp_spa »  2011/06/07 20:33

    HI Benjamin,

    you are right!

    Thanks for your help!
  • Re: Permission
    2011/06/07 20:33

    bmp_spa HI Benjamin,<br/><br/>you are right!<br/><br/>Thanks for your help!

  • Number of messages  4
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page