Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7804

Error in groups when the BO does not have access to a user in AD, user found in a group

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.0M13
    • 4.0M12
    • None
    • None
    • snapshot

      I get this error in the logs

      Caused by: java.lang.IllegalArgumentException: Missing login id attribute : "sAMAccountName"
              at org.ametys.plugins.core.impl.group.directory.ldap.UserDrivenLdapGroupDirectory._getUserInfos(UserDrivenLdapGroupDirectory.java:339)
              at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      

      Actually on the entry object we egt no attributes.

      org.ametys.plugins.core.impl.group.directory.ldap.UserDrivenLdapGroupDirectory

         protected UserInfos _getUserInfos(SearchResult entry)
          {
              UserInfos infos = null;
              // Retrieve the entry attributes
              Attributes attrs = entry.getAttributes();
              
              try
              {
                  // Retrieve the identifier of a group
                  Attribute loginAttr = attrs.get(_usersLoginAttribute);
                  if (loginAttr == null)
                  {
                      throw new IllegalArgumentException("Missing login id attribute : \"" + _usersLoginAttribute + "\"");
                  }
      
      
      

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: