javascript - LDAP Query originating from client-side "onload" -


i have asked previous questions think got far pre-conceived notions ruled out other options. i'm going start over:

i have tools developed , maintained in html , javascript. automate collection of user data. users filling in information , storing them in cookies 6 months. however, if can have them skip step of manually inputting information it'll small time savings.

if i'm going using server-side i'll using microsoft web server 2012 iis 8.5.

what know is: best approach in terms of language?

is best approach client ajax call asp.net page writes user data json format? should try authenticated queries or non-authenticated queries? i'm lost.

i need recommendations , guidance , how started/what need learn.

update: clear, i'm looking solution external existing code. can access externally (e.g. ajax comes mind) , have spit (ad data point indicators): givenname, sn, displayname, telephonenumber, title.

there multiple layers this. order securely pass data between client , server, need use https. can buy certificate several websites, development lets create self-signed certificate. in iis, go server>server certificates>create self-signed certificate..., enter name , click on ok.

now need use certificate. go sites>add web site..., give site name, physical path, in binding section, set type https, , select certificate made in ssl certificates. click ok.

if don't have visual studio, express version https://www.visualstudio.com/vs/visual-studio-express/. once installed, open visual studio. go file>new website..., choose visual c#>asp.net web site, , click ok.

in solution explorer, expand account , double click on login.aspx. in main panel, click on split view of html , render like. click on log in button. in properties panel, click on lightning bolt actions , double click in click option.

in here, use directoryservices, needs referenced in project. right click on project in solution explorer, select add reference.... in .net tab, select system.directoryservices , system.directoryservices.accountmanagement, , click ok. in account/login.aspx.cs in loginbutton_click enter:

bool validuser;     principalcontext ctx  = new principalcontext(contexttype.domain);     validuser = ctx.validatecredentials(this.loginuser.username, this.loginuser.password);     if (validuser) {         // stuff here.     } 

you have basic ldap enabled website.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -