hola,

please contact the project owner, sebastian wagner for an SVN
Account...

-> did u have the possibility to check Active Directory compatibility
of your current code?

if not, let me know ,so i can checkout your sources as soon as you
commited them and test it against Active Directory...


see ya

Smoeker

On 27 Okt., 12:46, Abdul Rehman Nizamani <nizaman...@gmail.com> wrote:
> Dear Smoekar  AND John Gisler:
>
> Sorry for late. I have made amendments in all three LDAP related files
> but only testing is left after integration. Please let me know how
> should I send you these files as far John Gisler is concern I am
> sending him to his email address.
>
> Once again sorry for late and please do not hesitate to contact me if
> any problem persist and the best way to contact me is via email.
>
> Regards,
>
> Abdul Rehman Nizamani
> Gmail, Yahoo, Hotmail, Skype: nizamaniar
> Ibn Khaldun Systems
>
> On Oct 19, 7:08 pm, smoeker <o.beche...@medint.de> wrote:
>
>
>
> > hola,
>
> > thanx in advance for your contributions!
>
> > see ya
>
> > Smoeker
>
> > On 19 Okt., 14:50, Abdul Rehman Nizamani <nizaman...@gmail.com> wrote:
>
> > > Assalam-o-Aalaikum Smoekar:
>
> > > Thank you very much for valuable suggestions. Actually the earlier
> > > listed class was specifically hardcoded for our use. Now I have to
> > > work on it to make it work for everyOpenLDAPinstallation, so, the
> > > users will have to specify only theirOpenLDAPspecific
> > > configurations.
>
> > > You are right it is useless to call LdapAuthBase.authenticateUser
> > > method twice, there is no need of it, and so it should be omitted.
>
> > > Unfortunately I am having tight schedule for this week but I will try
> > > my best to contribute.
>
> > > Regards,
>
> > > Abdul Rehman Nizamani
>
> > > On Oct 18, 4:27 pm, smoeker <o.beche...@medint.de> wrote:
>
> > > > hola John/Abdul,
>
> > > > some additional notes about the searchfilter :
>
> > > > 1. it sureley wont disturb the login process itself - it is required
> > > > to retrieve users detail data after succesful login (user record is
> > > > stored local to keep up referentiall integrity)
> > > > 2. if the "objectclass person" filter is required for every open ldap
> > > > installation, we shoul consider, making it configruable within
> > > > om_ldap.cfg - but we cant take over the patched part into SVN, because
> > > > it contains hardcoded
> > > > "uid" - that wont work on Active Directory ;-)
>
> > > > -> a vaild solution for furtheropenLdapcompatibility would be,
> > > > making the whole searchfilter configurable via config.
>
> > > > ...and some notes about the login process itself :
>
> > > > the function LdapAuthBase.authenticateUser creates a
> > > > DirectoryContext , that is used for every following LDAP Action, so
> > > > calling this function twice means : the first call was quite
> > > > senseless...
>
> > > > btw : the Softerra Ldap Browser comes along with a trial license and
> > > > is quite comfortable to checkout a Ldap installation standalone...
>
> > > > see ya
>
> > > > Smoeker
>
> > > > On 17 Okt., 09:31, Abdul Rehman Nizamani <nizaman...@gmail.com> wrote:
>
> > > > > Dear John Gisler:
>
> > > > > I am very sorry for unavailability. I have successfully implemented
> > > > > Openmeetings integration withOpenLDAPin our production environment.
> > > > > I will send you the detailed document soon most probably in coming
> > > > > week which will help you in integrating theOpenLDAPwith Openmeetings
> > > > > in your production environments.
>
> > > > > Regards,
>
> > > > > Abdul Rehman Nizamani
> > > > > Java Software Engineer
> > > > > Ibn Khaldun Systems
> > > > > 65-C Second Floor, DHA Commercial Area "A"
> > > > > DHA Phase 2, Karachi 75500
> > > > > Pakistan
> > > > > Tel: +92-21-35397301 Fax: +92-21-35397302
> > > > > Cell: +92-300-8373265
> > > > > Skype, GMail: nizamaniar
> > > > > Email: nizaman...@ibnkhaldun.com.pk
> > > > > Web:http://www.ibnkhaldun.com.pk
>
> > > > > On Oct 17, 2:34 am, John Gisler <pcm...@gmail.com> wrote:
>
> > > > > > I believe this portion of the code is where the problem might be:
>
> > > > > >                 //IKS
>
> > > > > >                 // Attributes to retrieve from ldap
> > > > > >                 List<String>  attributes1 = new ArrayList<String>();
> > > > > >                 attributes1.add(LDAP_KEY_UID); // UID
> > > > > >                 attributes1.add(LDAP_KEY_COMMONNAME); // Comman name
>
> > > > > >                 lAuth.authenticateUser(ldap_admin_dn, ldap_passwd);
>
> > > > > >                 HashMap<String, String>  uidCnBridge = new 
> > > > > > HashMap<String, String>();
>
> > > > > >                 Vector<HashMap<String, String>>  usersData = 
> > > > > > lAuth.getData
> > > > > > (ldap_search_scope, ldap_search_filter, attributes1);
> > > > > >                 for (HashMap<String, String>  userData : usersData) 
> > > > > > {
> > > > > >                         log.debug("LDAP UID: " 
> > > > > > +userData.get(LDAP_KEY_UID) + " LDAP CN:
> > > > > > "+userData.get(LDAP_KEY_COMMONNAME));
> > > > > >                         uidCnBridge.put(userData.get(LDAP_KEY_UID), 
> > > > > > userData.get
> > > > > > (LDAP_KEY_COMMONNAME));
> > > > > >                 }
>
> > > > > >                 try{
> > > > > >                         
> > > > > > if(!lAuth.authenticateUser("cn="+uidCnBridge.get(user)
> > > > > > +","+ldap_search_scope, passwd))
> > > > > >                                 return new Long(-11);
> > > > > >                 }catch(Exception e ){
> > > > > >                         log.error("Error on LdapAuth : " + 
> > > > > > e.getMessage());
> > > > > >                         return null;
> > > > > >                 }
> > > > > >                 //IKS END
>
> > > > > > Since it is truncated I went through it & changed it to as follows:
>
> > > > > >                  //IKS
>
> > > > > >                  // Attributes to retrieve from ldap
> > > > > >                  List<String> attributes1 = new ArrayList<String>();
> > > > > >                  attributes1.add(LDAP_KEY_UID); // UID
> > > > > >                  attributes1.add(LDAP_KEY_COMMONNAME); // Comman 
> > > > > > name
>
> > > > > >                  lAuth.authenticateUser(ldap_admin_dn, ldap_passwd);
>
> > > > > >                  HashMap<String, String> uidCnBridge = new
> > > > > > HashMap<String, String>();
>
> > > > > >                  Vector<HashMap<String, String>> usersData =
> > > > > > lAuth.getData(ldap_search_scope, ldap_search_filter, attributes1);
> > > > > >                  for (HashMap<String, String> userData : usersData) 
> > > > > > {
> > > > > >                          log.debug("LDAP UID: "
> > > > > > +userData.get(LDAP_KEY_UID) + " LDAP CN: "
> > > > > > +userData.get(LDAP_KEY_COMMONNAME));
> > > > > >                          uidCnBridge.put(userData.get(LDAP_KEY_UID),
> > > > > > userData.get(LDAP_KEY_COMMONNAME));
> > > > > >                  }
>
> > > > > >                  try{
>
> > > > > > if(!lAuth.authenticateUser("cn="+uidCnBridge.get(user)+","+ldap_search_scop­­e,
> > > > > > passwd))
> > > > > >                                  return new Long(-11);
> > > > > >                  }catch(Exception e ){
> > > > > >                          log.error("Error on LdapAuth : " + 
> > > > > > e.getMessage());
> > > > > >                          return null;
> > > > > >                  }
> > > > > >                  //IKS END
>
> > > > > > Since I am by no means a programmer mainly just a hack. I can see 
> > > > > > the
> > > > > > logic of how it works & what it's doing but perhaps I have broken it
> > > > > > trying to fix the broken lines.
>
> > > > > > John-
>
> > > > > > Thanks for the responses Smoeker.  ;)
>
> > > > > > On 10/16/2009 12:14 AM, smoeker wrote:
>
> > > > > > > hola,
>
> > > > > > > u r right - the first attempt passes the user authentication 
> > > > > > > itself
> > > > > > > (including the login on the ldap server itself and also the
> > > > > > > authentication of the user's credentials).
>
> > > > > > > ->  seeing these UID debugmessages , i think u are working with 
> > > > > > > the
> > > > > > > patch, that is posted within this thread?
>
> > > > > > > i am a little bit confused about the changes within this patch :
>
> > > > > > > here some facts, that can cause trouble :
>
> > > > > > > 1. SearchFilter :
>
> > > > > > > Original = String ldap_search_filter = "(" +
> > > > > > > ldap_fieldname_user_principal + "=" + user + ")";
> > > > > > > Patch =      String ldap_search_filter = 
> > > > > > > "(&(objectclass=person)(uid=" +
> > > > > > > user +
> > > > > > > "))";
>
> > > > > > > The patch contains a hardcoded searchfilter (objectclass=person) 
> > > > > > > that
> > > > > > > might not be available on every LDAP Installation
>
> > > > > > > 2. Authentication
>
> > > > > > > Original :
>
> > > > > > > LdapAuthBase lAuth = new LdapAuthBase(ldap_url, ldap_admin_dn,
> > > > > > > ldap_passwd, ldap_auth_type);
>
> > > > > > >            try{
> > > > > > >                    if(!lAuth.authenticateUser(user, passwd))
> > > > > > >                            return new Long(-11);
> > > > > > >            }catch(Exception e ){
> > > > > > >                    log.error("Error on LdapAuth : " + 
> > > > > > > e.getMessage());
> > > > > > >                    return null;
> > > > > > >            }
>
> > > > > > > ->  the Method authenticate user contains functionality for the 
> > > > > > > login
> > > > > > > on the server itself, so it isnt required to do this twice, as 
> > > > > > > seen in
> > > > > > > the patch, once for the admin and then for the user himself....
>
> > > > > > > Patch :
>
> > > > > > >    LdapAuthBase lAuth = new LdapAuthBase(ldap_url, ldap_admin_dn,
> > > > > > > ldap_passwd, ldap_auth_type);
>
> > > > > > >                  //IKS
>
> > > > > > >                  // Attributes to retrieve from ldap
> > > > > > >                  List<String>  attributes1 = new 
> > > > > > > ArrayList<String>();
> > > > > > >                  attributes1.add(LDAP_KEY_UID); // UID
> > > > > > >                  attributes1.add(LDAP_KEY_COMMONNAME); // Comman 
> > > > > > > name
>
> > > > > > >                  lAuth.authenticateUser(ldap_admin_dn,
>
> ...
>
> Erfahren Sie mehr »- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To post to this group, send email to openmeetings-user@googlegroups.com
To unsubscribe from this group, send email to 
openmeetings-user+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to