I have disabled anonymous access in IIS. Also i have given Read & write access to the account tang09 for the website virtual directory and Microsoft.NET folder located in windows folder. But still i get prompted for the domain username and password to access the website.
I have read countless forums and found nothing so for so apparently what I need is an unusual request.I need a code snippet that will iterate through an AD domain account and display all properties for a given user.Has anyone ever built such a script?
If there is a code snippet that displays just the available properties of a user object, this would be sufficient. I am trying to build an application to add users to our LDAP and need to populate all our specific values however I don't have the specific property names to populate.
I have developed a web application which has LDAP authentication implemented.When I run the application though visual studio it works fine , LDAP works perfectly and allows if login name and password are correct.
If the same application is hosted on IIS server 6.0, LDAP queries fail to work. What could be the reason for the same ?
I have a web app, right now we use ADFS for SSO. A client says they have other third-party teams use LDAP to achieve this. How do I begin? What will I need to know from them in order to connect? Will I need to ask the user anything when they log in to get the process started?
Using VB2005 and in my code behing I have following query:
[Code]....Value of my select string is: select sAMAccountName, displayName, title, userAccountControl from 'LDAP://DC=Vecelliogroup,DC=COM' where objectCategory = 'User' and title <> ' ' and (userAccountControl <> '66050' and userAccountControl <> '514') and sAMAccountName like '%vg%'
Getting error:System.Data.OleDb.OleDbException: 'ADSDSOObject' failed with no error message available, result code: DB_E_ERRORSINCOMMAND(0x80040E14).
Now, if I leave out the "title" and the "sAMAccountName" from my select it works fine. I am trying to get records where the "title" is not empty and name matches my prefix.
i am trying to get some properties from ldap for the current user logged on. i have the samAccountname but i want to be able to pull the persons position as well but i am not sure how to pull this from LDAP. i have the foolowing code;
string user = Request.ServerVariables["AUTH_USER"].ToString(); string splituser = user.Split( '\' );
DirectorySearcher search = new DirectorySearcher( de );[code]............
but this gives me an arguments out of bound exception,
I would like to get a persons name from their username - a common query on forums i know, but i haven't managed to get mine working yet.
I currently have this code that I found here: http://www.vbforums.com/showthread.php?t=612655 (Thanks Chris128)
I have adapted it from VB into VB.net. The page renders but when i enter my username into the Username textBox and hit the submit button (Which calls IsUser) I just get "The specified domain either does not exist or could not be contacted." I have tried lots of other code but I always get this response...
I want to learn how to add/delete/update account (including adding mail boxes for new users). Can someone point to a good book where I can begin from. I want to start with some real basics and build from there.