c# - LDAP with Custom Membership Provider -
i'm in bit of pickle here. want authenticate users through ldap , automatically create accounts users when log in first time.
so far i've created custom membership provider & i'm able log in ldap credentials. next step have in mind capture username , store in local database, creating new user. problem is, createuser method requires database items don't need such 'isapproved' or 'islockedout'. don't want store user passwords if possible , authenticate directly ldap store.
to cut chase, best option?
- stick current custom membership provider & have additional database fields don't require
- implement custom membership user + custom membership provider (the long route)
- iprincipal & iidentity?
any feedback appreciated. thanks!
p.s. i'm using ef code first mvc 4.
i've managed figure out. decided use default database fields, stuck custom provider , used createuser method add new users database.
Comments
Post a Comment