Browse by Tags

Related Posts

  • Re: How to check User Enabled or Locked with LDAP Server ?

    The lockoutTime is trickier than that. You either need the calculation, or you need to use msDs-User-Account-Control-Computed in Windows 2003/ADAM. You can see how it is done in Ch. 10's samples. The links to the samples are at the top of this forum.
    Posted to Active Directory and LDAP (Forum) by dunnry on 09-20-2006, 12:00 AM
    Filed under: LDAP, ADSI
  • Re: Retrieve only name and telephonenumber

    bdesmond: You need to check that the value isn't null before you use it: if (!(sr.Properties[ "telephonenumber" ][0] == null )) { // Do something } Unfortunately, that will blow up if the attribute does not exist on the object (since index 0 won't exist). You need to use the .Contains...
    Posted to Active Directory and LDAP (Forum) by dunnry on 09-20-2006, 12:00 AM
    Filed under: LDAP, ADSI
  • Re: Return users in an OU and filter out certain accounts

    Without a distinguishing attribute on the objects you don't want (or a location that is different), it becomes more difficult to do this filtering, since by definition they must be different for a filter to work. You could add them to a security group and filter them by the 'memberOf' attribute...
    Posted to Active Directory and LDAP (Forum) by dunnry on 09-20-2006, 12:00 AM
    Filed under: LDAP, ADSI, Directory Services
  • Re: Return users in an OU and filter out certain accounts

    Thanks for the quick response Ryan. I haven't been successful getting that to work. The code I'm using returns all users, including two users that are members of the group "ExcludeFromWebApp". One user is in "TESTDEPARTMENT" the other user is in another department. With the...
    Posted to Active Directory and LDAP (Forum) by TimD on 09-21-2006, 12:00 AM
    Filed under: LDAP, ADSI, Directory Services
  • Re: Return users in an OU and filter out certain accounts

    Update... I've got it working, thank you for the syntax Ryan. The filter worked great when I queried new or existing security groups that were outside of the "OU=DEPARTMENT". Any security group contained in or below "DEPARTMENT" wouldn't return correct results when I ran the...
    Posted to Active Directory and LDAP (Forum) by TimD on 09-21-2006, 12:00 AM
    Filed under: LDAP, ADSI, Directory Services
  • Re: Return users in an OU and filter out certain accounts

    Interesting... If I have time, I might try to replicate what you are seeing. I don't believe it should be doing that (the group's location should be irrelevant). I wonder if something else is not at play there. At least it is working for you now... good luck.
    Posted to Active Directory and LDAP (Forum) by dunnry on 09-22-2006, 12:00 AM
    Filed under: LDAP, ADSI, Directory Services
  • LDAP path

    We would like to use logins against our active directory authentication. But our DIT is like below, we only want student users. How can I write the ADPath, LDAP:// I would like all the students users below schools, Mydomain.org - Admin - Computers - Users - Schools - Elementary Schools -Lake Spring ...
    Posted to Active Directory and LDAP (Forum) by anncao on 09-22-2006, 12:00 AM
    Filed under: LDAP
  • Re: LDAP path

    Are you asking what the LDAP path for a student is? I am not sure what you are asking. If 12345 is the name of a student user object, it would be "LDAP://CN=12345,OU=Student Users,OU=Lake Spring,OU=Elementary Schools,OU=Schools,DC=mydomain,DC=org".
    Posted to Active Directory and LDAP (Forum) by dunnry on 09-22-2006, 12:00 AM
    Filed under: LDAP, ADSI, Directory Services
  • Re: How to query LDAP using LIKE statement

    bdesmond: Patrik- I would check to see if your firstName textbox is empty before I added that to the search filter. Yep. I agree. An easy thing to do is put your text boxes into a panel on the form. Then at query submit time, just loop through all the controls inside the panel. If you were clever enough...
    Posted to Active Directory and LDAP (Forum) by dunnry on 09-25-2006, 12:00 AM
    Filed under: LDAP, ADSI, Directory Services
  • Re: ldap connection string

    The only times you really need to specify this is when you are doing things from either a non-domain security context or from another domain. If you are in the same domain and with a domain security context, then serverless binding (DN alone) is a good choice. What can occasionally bite you is unrecognized...
    Posted to Active Directory and LDAP (Forum) by dunnry on 09-26-2006, 12:00 AM
    Filed under: LDAP, ADSI, Directory Services
Page 1 of 7 (69 items) 1 2 3 4 5 Next > ... Last ยป