• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1561
  • Last Modified:

UserAccountControl value of 590338

First let me start by saying I am a novice at LDAP stuff

For a report I am writing I need to retrieve some ldap info so I

ran the following query

SELECT displayname
      ,samaccountname
      ,useraccountcontrol
      ,pager
      ,title
      ,department
FROM openquery(ADSI, 'SELECT department
                      ,samaccountname
                      ,pager
                      ,useraccountcontrol
                      ,displayname
                      ,title
                      FROM ''LDAP://t.local'' (I blanked out ldap value for security)
                      WHERE objectCategory = ''Person''AND objectClass =''user''
                      order by displayname')

I was able to google all the useraccount control values to see what they meant except for the user account control value of 590338

Any one have any idea what this one means?
0
johnnyg123
Asked:
johnnyg123
  • 2
1 Solution
 
Mike KlineCommented:
You have to add them up which can be a pain

http://support.microsoft.com/kb/305144

Accountdisable    = 2
NormalAccount    = 512
Dont_expire_password = 65536
Trusted_for_delegation = 524288

= 590338

bing/google "calculating useraccountcontrol"  really nice spreadsheet out there that can make this a lot easier...it's what I used :)

Thanks

Mike
0
 
johnnyg123Author Commented:
Perfect....Thanks Mike!
0
 
Mike KlineCommented:
Glad to help...helped me too because I didn't have that spreadsheet :)

Thanks

Mike
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now