lib/activedirectory.js
function getGroupQueryFilter(groupName) {
  log.trace('getGroupQueryFilter(%s)', groupName);
  var self = this;

  if (! groupName) return('(objectCategory=Group)');
  if (isDistinguishedName.call(self, groupName)) {
    return('(&(objectCategory=Group)(distinguishedName='+parseDistinguishedName(groupName)+'))');
  }
  return('(&(objectCategory=Group)(cn='+groupName+'))');
}
function getGroupQueryFilter(groupName) {
  log.trace('getGroupQueryFilter(%s)', groupName);
  var self = this;

  if (! groupName) return('(objectCategory=Group)');
  if (isDistinguishedName.call(self, groupName)) {
    return('(&(objectCategory=Group)(distinguishedName='+parseDistinguishedName(groupName)+'))');
  }
  return('(&(objectCategory=Group)(cn='+groupName+'))');
}
function getGroupQueryFilter ( groupName ) { log . trace ( 'getGroupQueryFilter(%s)' , groupName ) ; var self = this ; if ( ! groupName ) return ( '(objectCategory=Group)' ) ; if ( isDistinguishedName . call ( self , groupName ) ) { return ( '(&(objectCategory=Group)(distinguishedName=' + parseDistinguishedName ( groupName ) + '))' ) ; } return ( '(&(objectCategory=Group)(cn=' + groupName + '))' ) ; }
Gets the ActiveDirectory LDAP query string for a group search.

@private
@param {String} groupName The name of the group
@returns {String}
Gets the ActiveDirectory LDAP query string for a group search .