2013年1月29日星期二

VMware .encoding windows-1252

Problem with starting VMWare image, open the *.vmx with notepad, you will find '.encoding = "windows-1252" ' in this first line. Delete the first line and save it, the image could be started.


http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014201

2013年1月21日星期一

LDAP Queries

Remarks:

(|(&(|(objectClass=Contact)(&(objectClass=group)(!(userAccountControl:1.2.840.113556.1.4.803:=2))))(mail=*))
(&(|(objectClass=Contact)(&(objectClass=User)(!(userAccountControl:1.2.840.113556.1.4.804:=2))))(mail=*)))

Syntax


Name of Operator
=
*
&
|
!

Common LDAP Queries

The examples below show the most common LDAP queries. These queries are the most common queries used, and are designed to work with most directory server environments.
All objects (this may cause load problems):
All user objects that are designated as a “person”
Distribution Lists only
Public Folders only
All user objects except for ones with primary email addresses that begin with test
All user objects except for ones with primary email addresses that end with test
All user objects except for ones with primary email addresses that contain the word “test”
All user objects (users and aliases) that are designated as a “person” and all group objects (distribution lists)
All user objects that are designated as a “person”, all group objects and all contacts, except those with any value defined for extensionAttribute9:
(&(|(|(&(objectclass=user)(objectcategory=person))(objectcategory=group))(objectclass=contact))(!(extensionAttribute9=*)))
All users, but exclude disabled users:
Active Directory LDAP: All users
Active Directory LDAP: All email users (alternate)
OpenLDAP: All users
Lotus Domino LDAP: All users
Lotus Domino LDAP: All objects with a mail address defined that are designated as a “person “or “group”:
 


Ref: http://www.google.com/support/enterprise/static/postini/docs/admin/en/dss_admin/prep_ldap.html