Massimo, you should have a patch in email for active directory ldap
auth. As noted in my email:
It works but we will also need to change tools.py so that it forces
ldap authentication each time, not just the first (maybe track the
auth method in the db?).
Currently after the account is authenticated through ldap, the
credentials are stored in the db and ldap is never queried again.
Also, ideally the login form would be specific to the the auth type so
ldap/active directory could include a domain name field.
Then we can tackle an LDAP membership provider!
> only mode='uid' is implemented. I could use help debugging/
> implementing the other modes
>
> Massimo
>
> On Jun 8, 10:38 pm, "mr.freeze" <
nfre...@gmail.com> wrote:
>
>
>
> > Sorry, I saw 'raise SyntaxError, "Not yet implemented"' under the 'ad'
> > and 'domino' if statements of ldap_auth_aux in ldap_auth.py and
> > thought you weren't done. I tried it and it seems that if ad/ldapis
> > enabled that it will take any username with a blank password.
>
> > On Jun 8, 10:04 pm, mdipierro <
mdipie...@cs.depaul.edu> wrote:
>
> > >ldapshould work already. Please test it.
> > > > Massimo, I can testldapagainst AD when it is finished.
>
> > > > On May 13, 12:01 am, mdipierro <
mdipie...@cs.depaul.edu> wrote:
>
> > > > > Please try this....
>
> > > > > 1) to authenticate with gmail
>
> > > > >auth=Auth(globals(),db)
> > > > > from gluon.contrib.login_methods.email_auth import email_auth
> > > > >auth.settings.login_methods.append(email_auth())
>
> > > > > 2) to authenticate using basic authentication of a third party server
>
> > > > >auth=Auth(globals(),db)
> > > > > from gluon.contrib.login_methods.basic_auth import basic_auth
> > > > >auth.settings.login_methods.append(basic_auth('
http://server'))
>
> > > > > 3) to authenticate usingLDAP server
>
> > > > >auth=Auth(globals(),db)
> > > > > from gluon.contrib.login_methods.ldap_auth import ldap_auth
> > > > >auth.settings.login_methods.append(ldap_auth(...))
>
> > > > > (requiresldaplibrary installed. look into gluon/contrib/
> > > > > login_methods/ldap_auth.py for ... options).
>
> > > > > Please let me know if this works for you.
>
> > > > > CAS client will be next....- Hide quoted text -
>
> - Show quoted text -