RE: LDAP queries

  • From: "Periyasamy, Raj" <Raj.Periyasamy@xxxxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Thu, 18 Dec 2003 14:10:58 -0500

Mark,
I think this can be done using vbscripting. Something like below,


On Error Resume Next
Set objOU = GetObject("LDAP://dc=fabrikam,dc=com";)
objOU.Filter = Array("user")
For Each objUser In objOU
objUser.GetInfo
strGivenName = objUser.Get("givenName")
strInitials = objUser.Get("initials")
strSn = objUser.Get("sn")
strDisplayName = objUser.Get("displayName")
strMail = objUser.Get("mail")
strLogonCounts = objUser.Get("logonCount")

If strLogonCounts > 34 Then
wscript.echo strDisplayname & " " & strLogonCounts
End if

Next




Regards, 
Shanmuga Raj Periyasamy   (Raj) 
Infineum, Linden NJ 
Information Technology 
Office: 1 (908) 474-2090 
Mobile: 1 (908) 208-5935 
mailto:raj.periyasamy@xxxxxxxxxxxx 
-----Original Message-----
From: Shevill, Mark M SITI-ITDCE22 [mailto:Mark.Shevill@xxxxxxxxx] 
Sent: Thursday, December 18, 2003 10:02 AM
To: [ExchangeList]
Subject: [exchangelist] LDAP queries


http://www.MSExchange.org/

All
    Does anyone know how to use a greater than in an ldap search through
LDP or something along those lines. For example

LogonCounts>34 



Mark Shevill 
IMG Messaging Technical Lead 
Shell Information Technology International Limited 
Rowlandsway, Wythenshawe, Manchester M22 5SB, United Kingdom 
Tel: +44 161 435 8709 Fax: +44 161 933 3502 Other Tel: +44 7932 625510 
Email: Mark.Shevill@xxxxxxxxx 
Internet: http://www.shell.com 

------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
Leading Network Software Directory: http://www.serverfiles.com
No.1 ISA Server Resource Site: http://www.isaserver.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------ 



Other related posts: