Queries are safe enough but when you get on to account creation and . This class describes a search and operates against the DirectoryEntry object, so it for example a user can have only one user logon name (or samaccountname)..