Github user mike-jumper commented on a diff in the pull request:

    https://github.com/apache/guacamole-client/pull/337#discussion_r232137476
  
    --- Diff: 
extensions/guacamole-auth-ldap/src/main/java/org/apache/guacamole/auth/ldap/group/UserGroupService.java
 ---
    @@ -0,0 +1,224 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +
    +package org.apache.guacamole.auth.ldap.group;
    +
    +import com.google.inject.Inject;
    +import com.novell.ldap.LDAPConnection;
    +import com.novell.ldap.LDAPEntry;
    +import java.util.Collection;
    +import java.util.Collections;
    +import java.util.HashSet;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.Set;
    +import org.apache.guacamole.auth.ldap.ConfigurationService;
    +import org.apache.guacamole.GuacamoleException;
    +import org.apache.guacamole.auth.ldap.ObjectQueryService;
    +import org.apache.guacamole.net.auth.UserGroup;
    +import org.apache.guacamole.net.auth.simple.SimpleUserGroup;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +/**
    + * Service for querying user group membership and retrieving user groups
    + * visible to a particular Guacamole user.
    + */
    +public class UserGroupService {
    +
    +    /**
    +     * Logger for this class.
    +     */
    +    private final Logger logger = 
LoggerFactory.getLogger(UserGroupService.class);
    +
    +    /**
    +     * Service for retrieving LDAP server configuration information.
    +     */
    +    @Inject
    +    private ConfigurationService confService;
    +
    +    /**
    +     * Service for executing LDAP queries.
    +     */
    +    @Inject
    +    private ObjectQueryService queryService;
    +
    +    /**
    +     * Returns the base search filter which should be used to retrieve user
    +     * groups which do not represent Guacamole connections. As excluding 
the
    +     * guacConfigGroup object class may not work as expected (may always 
return
    +     * zero results) if guacConfigGroup object class is not defined, it 
should
    --- End diff --
    
    True. I'll [rephrase it 
appropriately](https://www.youtube.com/watch?v=_K-L9uhsBLM).


---

Reply via email to