i am having the active active directory authentification problm
althoght i have tried lot of different variation using cas.
I will be happy if some one just show me a simple model/db.py where it
is correctly configured.

i exclude misbaviors from my Active Directory Autentification server
as I get it worked using java and php.

I just changed the cas_user table to do the ad authentification.
This is how my db.py looks like.


auth=Auth(globals(),db)                      # authentication/
authorization
auth.settings.login_methods=[ldap_auth
(mode='ad',server='ad.mydoman.com',
base_dn='ou=users,ou=kjc,ou=institute,dc=ad,dc=mydomain,dc=com')]

auth.settings.table_user =db.define_table("cas_user",
  db.Field("name",length=128,default=""),
  db.Field("email", length=128,default=""),
  db.Field("password",'password',readable=False,
label="Password"),
  db.Field('verification',default=''),
  db.Field('last_attempt_time','integer',default=0),
  db.Field('failed_attempts','integer',default=0))#, readable=False,
default="")

t = auth.settings.table_user
t.name.requires = IS_NOT_EMPTY()
t.email.requires = IS_NOT_EMPTY()
t.password.requires = CRYPT()
t.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, db.cas_user.email)]
auth.define_tables()

crud=Crud(globals(),db)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to