public void updateUserAttribute(SSOToken token,Set members,String staticGroupDN,boolean toAdd) throws AMException {
  if (debug.messageEnabled()) {
    debug.message("DirectoryServicesImpl.updateUserAttribute(): " + "groupDN:" + staticGroupDN + ", toAdd: "+ toAdd+ " members: "+ members);
  }
  Attr attr=new Attr(STATIC_GROUP_DN_ATTRIBUTE,staticGroupDN);
  Iterator itr=members.iterator();
  while (itr.hasNext()) {
    String userDN=(String)itr.next();
    try {
      PersistentObject po=UMSObject.getObjectHandle(token,new Guid(userDN));
      if (toAdd) {
        po.modify(attr,ModificationType.ADD);
      }
 else {
        po.modify(attr,ModificationType.DELETE);
      }
      po.save();
    }
 catch (    UMSException e) {
      debug.error("DirectoryServicesImpl.updateUserAttribute(): " + "Failed while trying to set the static groupDN " + staticGroupDN + " for user: "+ userDN,e);
      throw new AMException(token,"351",e);
    }
  }
}

public void updateUserAttribute ( SSOToken token , Set members , String staticGroupDN , boolean toAdd ) throws AMException { if ( debug . messageEnabled ( ) ) { debug . message ( "DirectoryServicesImpl.updateUserAttribute(): " + "groupDN:" + staticGroupDN + ", toAdd: " + toAdd + " members: " + members ) ; } Attr attr = new Attr ( STATIC_GROUP_DN_ATTRIBUTE , staticGroupDN ) ; Iterator itr = members . iterator ( ) ; while ( itr . hasNext ( ) ) { String userDN = ( String ) itr . next ( ) ; try { PersistentObject po = UMSObject . getObjectHandle ( token , new Guid ( userDN ) ) ; if ( toAdd ) { po . modify ( attr , ModificationType . ADD ) ; } else { po . modify ( attr , ModificationType . DELETE ) ; } po . save ( ) ; } catch ( UMSException e ) { debug . error ( "DirectoryServicesImpl.updateUserAttribute(): " + "Failed while trying to set the static groupDN " + staticGroupDN + " for user: " + userDN , e ) ; throw new AMException ( token , "351" , e ) ; } } }
adds or remove static group dn to or from member attribute ' iplanet - am - static - group - dn '
