Question : LDAP query to pull all users in from My active directory

Hello I have this application that Syncs with Active Directory it works however it only pulls the groups and not the users. I was wondering what I would statement I would use to get all of my users from Active Directory?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
  
  

Answer : LDAP query to pull all users in from My active directory

Hi,

I'm not familiar with the type of code that you posted. But since it's returning groups to your application I assume that the code is ok. In Active Directory both user & group objects have an objectClass attribute. For groups the value = group, for users it is person.

What you could try is change:

to:

or:

(please try both)

It's just a wild guess but hope it helps.




Random Solutions  
 
programming4us programming4us