Github user jmuehlner commented on a diff in the pull request:

    https://github.com/apache/guacamole-client/pull/337#discussion_r232134927
  
    --- Diff: 
extensions/guacamole-auth-ldap/src/main/java/org/apache/guacamole/auth/ldap/ObjectQueryService.java
 ---
    @@ -0,0 +1,326 @@
    +/*
    + * 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;
    +
    +import com.google.inject.Inject;
    +import com.novell.ldap.LDAPAttribute;
    +import com.novell.ldap.LDAPConnection;
    +import com.novell.ldap.LDAPEntry;
    +import com.novell.ldap.LDAPException;
    +import com.novell.ldap.LDAPReferralException;
    +import com.novell.ldap.LDAPSearchResults;
    +import java.util.ArrayList;
    +import java.util.Collection;
    +import java.util.HashMap;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.function.Function;
    +import org.apache.guacamole.GuacamoleException;
    +import org.apache.guacamole.GuacamoleServerException;
    +import org.apache.guacamole.net.auth.Identifiable;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +/**
    + * Service for executing queries against an LDAP directory intended to 
retrieve
    + * Guacamole-related objects. Referrals are automatically handled. 
Convenience
    + * functions are provided for generating the LDAP queries typically 
required
    + * for retrieving Guacamole objects, as well as for converting the results 
of a
    + * query into a Map of Guacamole objects.
    --- End diff --
    
    Incredibly minor quibble: you're capitalizing "Map" here (to refer to the 
Java class I assume), but in the javadoc for `asMap`, you use the lowercase 
form "map".


---

Reply via email to