https://github.com/kimboslice99/odbcprovider
Odbc Membership Provider, Role Provider, and Profile Provider
https://github.com/kimboslice99/odbcprovider
csharp iis net
Last synced: over 1 year ago
JSON representation
Odbc Membership Provider, Role Provider, and Profile Provider
- Host: GitHub
- URL: https://github.com/kimboslice99/odbcprovider
- Owner: kimboslice99
- License: gpl-3.0
- Created: 2024-02-28T23:35:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-09T05:10:15.000Z (over 1 year ago)
- Last Synced: 2025-02-08T16:18:33.475Z (over 1 year ago)
- Topics: csharp, iis, net
- Language: C#
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OdbcProvider for IIS
- This was written so that IIS can use an Odbc connection instead of MSSQL for MembershipProvider, RoleProvider, and ProfileProvider
## Setup
- Build
- Install to gac `gacutil /i OdbcProvider.dll`
- create a database for your connection string
- go through IIS dialogues to add a connection string (custom), personally I create a (system) DSN then just use `DSN=[dsnname]`
- To use COM wrapper (convenient for scripting) `C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm OdbcProvider.dll /codebase`
- run `AddToTrustedProviders.ps1`
- copy to bin folder of site
- now you can add the Role and Membership providers, after this point you should be able to create users under the .Net Users page in IIS
##
if registering COM, here is an example of usage. currently not much is passed through the wrapper. more to come.
```php
SetConnectionString("DSN=YOUR_DSN");
$membershipCom->IsUserInRole($_SERVER['REMOTE_USER'], "RoleName"); // bool
$membershipCom->ValidateUser("username", "password");
$membershipCom->UnlockUser("username");
```