You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2003/09/18 13:55:26 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/ac LDAPUser.java

egli        2003/09/18 04:55:26

  Modified:    src/java/org/apache/lenya/cms/ac LDAPUser.java
  Log:
  The ldapid was hard coded when doing the ldap lookup. This is fixed
  now.
  
  Revision  Changes    Path
  1.15      +3 -2      cocoon-lenya/src/java/org/apache/lenya/cms/ac/LDAPUser.java
  
  Index: LDAPUser.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ac/LDAPUser.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- LDAPUser.java	28 Aug 2003 14:06:32 -0000	1.14
  +++ LDAPUser.java	18 Sep 2003 11:55:26 -0000	1.15
  @@ -149,7 +149,8 @@
               String[] attrs = new String[1];
               attrs[0] = "gecos"; /* users full name */
   
  -            Attributes answer = ctx.getAttributes("uid=m400032,ou=People", attrs);
  +	    String searchString = "uid=" + ldapId + ",ou=People";
  +            Attributes answer = ctx.getAttributes(searchString, attrs);
   
               if (answer != null) {
                   Attribute attr = answer.get("gecos");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org