I fixed the problem by adding the server name to the
LDAP string, e.g.
<LDAP://domainname.com/DC=domainname,DC=com>; etc...
If I just did <LDAP://DC=domainname,DC=com>, it
wouldnt let me query certain fields. I don't know why.

I am using flags attribute for an application I am
building using ASP and ADSI. Would you recommend not
using that attribute? It is an optional attribute, so
I thought I could use it for a custom application.
Otherwise I might have to add a new attribute to the
schema.

Thanks
--- Tony Murray <[EMAIL PROTECTED]> wrote:
> You shouldn't have any problem with specifying
> either sAMAccountName or flags attributes in the
> search string.   
> 
> The flags attribute is a little obscure.  It seems
> to be used set for Group Policies.  Why did you want
> to use this as part of your search string? 
> 
> Some other attributes have binary values and are not
> suitable as part of the search string, e.g.
> userParameters. 
> 
> What ldap client are you using to query the
> directory?  You might want to consider ldp.exe as an
> alternative.   
> 
> Tony 
> 
> -----Original Message-----
> From: pio eqbal [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 9. Juli 2002 21:25
> To: [EMAIL PROTECTED]
> Subject: [ActiveDir] Querying active directory
> 
> 
> Hi,
> 
> While building the LDAP query string in active
> directory if I select the attributes like
> sAMAccountName or flags the query gives an
> 'unspecified error' during execution. Is there a
> limitation on which attributes I can select or not
> select in an LDAP query?
> 
> Thanks
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> List info   : http://www.activedir.org/mail_list.htm
> List FAQ    : http://www.activedir.org/list_faq.htm
> List archive:
>
http://www.mail-archive.com/activedir%40mail.activedir.org/
> 
> List info   : http://www.activedir.org/mail_list.htm
> List FAQ    : http://www.activedir.org/list_faq.htm
> List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to