Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Storing LDAP fields in a local database [MVC]

$
0
0

I'm using MVC to allow login via LDAP. I'm able to login with a method similar to the one usedhere. The thing is, I want to store some of those fields. Here's a sample of what I have so far :

if ((resultEmployee.Properties["givenname"].Count > 0))
                {
                    profile.GivenName = resultEmployee.Properties["givenname"][0].ToString();
                }

How do I then store a string in the SQL database table?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>