473,657 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Search Filter Syntax in Active Directory

Hi!

I want to get the properties of all the computer-accounts of an
ActiveDirectory structure (Microsoft). I know that could be done by
using "Search Filter Syntax" with LDAP-Dialect or SQL-Dialect.
I found a lot of information about these dialects, but no example how to
use this in an python-script.
Does anybody have a simple example for me, how to get some information
out of AD?

Best regards
Dirk Hagemann
Jul 18 '05 #1
0 1443

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2380
by: Auction software | last post by:
Free download full version , all products http://netauction8.url4life.com/ Groupawy --------------- Google Groups Email spider. The first email spider for google groups. Millions of valid and active emails in one easy location to collect. Spiderawy
3
7192
by: Dirk Hagemann | last post by:
Hi! I asked here a few weeks ago the same question but the answer of Tim Golden didn't really help yet. I'd like to know how to set up a query for all computer-accounts in a special part of Active Directory by using LDAP. Example: all computers with a name like "ABC*" at "..., ou=Production,
2
734
by: Sara | last post by:
Dear Sir, I want to access to a special group in active directory but with this function I could just see that a special user is exist in active directory or not, I mean I want to see that a user is exist in special group which I myself specified not in all of active directory. could you please help me and change this code or show me a method to which could do what I wanted thanks
0
2021
by: Auction software | last post by:
Free download full version , all products from Mewsoft dot com http://netauction8.url4life.com/ Groupawy --------------- Google Groups Email spider. The first email spider for google groups. Millions of valid and active emails in one easy location to collect. Spiderawy
0
991
by: mg | last post by:
I'm able to connect to AD and retrieve the value of mail for one user (for example, "jones") successfully, with the following code public void lookupOne( String domainAndUsername = domain + @"\" + username DirectoryEntry entry = new DirectoryEntry(_path, domainAndUsername, pwd) tr { Object obj = entry.NativeObject
0
1440
by: Ryo | last post by:
Hello ! I want to do something like this: string strFilter = "SyntaxThatICantFound"; DirectoryEntry dreAD = new DirectoryEntry("LDAP://192.168.0.1", "Admin", "Admin"); DirectorySearcher drsAD = new DirectorySearcher(dreAD); drsAD.Filter = "objectGUID=" + strFilter; drsAD.FindOne().GetDirectoryEntry(); But I can't found the syntax for the string strFilter, indeed in Active
4
1730
by: Robert Barnett | last post by:
I having trouble querying for users that have changed, when I have a node that have over 750 users. It takes way to long over 1 hour, if it does return users. How can I improve this? objADSDirEntry = New DirectoryEntry(sInADSADsPath, strADSUserName, strADSPassword, AuthenticationTypes.ServerBind) ObjADSDirSearcher = New DirectoryServices.DirectorySearcher(objADSDirEntry) Err.Clear() ObjADSDirSearcher.Filter =...
0
1121
by: Sara Rafiee via .NET 247 | last post by:
hello this is my code could anyone help me, I want to search exact user in special group in active directory, my group name is test11 . could anyone here help me to do this. thanks this is my code Public Function ValidateUser(ByVal Domain As String, ByVal username As String, ByVal password As String) As Boolean Dim strGroupDN As String strGroupDN = "Users"
2
6362
by: sgr | last post by:
How do I search an user into the active directory from a vb.Net application? Thanks for all.
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.