Jorge's Quest For Knowledge!

All You Need To Know About Identity And Security On-Premises And In The Cloud. It's Just Like An Addiction, The More You Have, The More You Want To Have!

(2014-12-27) Finding Attributes Marked As Members Of Filtered Attribute Set (FAS)

Posted by Jorge on 2014-12-27


When an attribute is defined with the bit 2^9 (=512) in the searchFlags property, the attribute is marked as being a member of the filtered attribute set (FAS). When attributes are configured like this, the data stored in those attributes will not replicate to any RODC, it will only be available on RWDCs. This does not prevent from querying RWDCs that do stored the data. Most likely it is a good idea to also configure an attribute that is a member of the FAS to also be confidential. Attributes marked as system-critical cannot be added to the FAS.

ADFIND

ADFIND -h RFSRWDC1.ADCORP.LAB -schema -f "(&(objectClass=attributeSchema)(searchFlags:1.2.840.113556.1.4.803:=512))" -dn

OR

ADFIND -h RFSRWDC1.ADCORP.LAB -bit -schema -f "(&(objectClass=attributeSchema)(searchFlags:AND:=512))" -dn

OR

ADFIND -sc ROPAS -dn (sorted output: ADFIND -sc ROPASL -dn)

image

Figure 1: Example Output

AD PoSH Module

Get-ADObject -Server RFSRWDC1.ADCORP.LAB -SearchBase $((Get-ADRootDSE).schemaNamingContext) -LDAPFilter "(&(objectClass=attributeSchema)(searchFlags:1.2.840.113556.1.4.803:=512))" | %{$_.DistinguishedName}

ADSI Through PoSH

$targetDC = "RFSRWDC1.ADCORP.LAB"
$rootDSE = [ADSI]"LDAP://$targetDC/RootDSE"
$schemaNamingContext = $rootDSE.schemaNamingContext
$search = New-Object DirectoryServices.DirectorySearcher([ADSI]"")
$Search.SearchRoot = "LDAP://$targetDC/$schemaNamingContext"
$search.filter = "(&(objectClass=attributeSchema)(searchFlags:1.2.840.113556.1.4.803:=512))"
$search.FindAll() | %{$_.Properties.distinguishedname}

PS: replace the FQDN of the DC with your info

PS: the opposite of this query can be found by replacing (searchFlags:1.2.840.113556.1.4.803:=512) with (!(searchFlags:1.2.840.113556.1.4.803:=512)) or use ADFIND -sc !ROPAS -dn (sorted output: ADFIND -sc !ROPASL -dn)

More information:

Cheers,
Jorge
———————————————————————————————
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always evaluate/test yourself before using/implementing this!
* DISCLAIMER:
https://jorgequestforknowledge.wordpress.com/disclaimer/
———————————————————————————————
############### Jorge’s Quest For Knowledge #############
#########
http://JorgeQuestForKnowledge.wordpress.com/ ########
———————————————————————————————

One Response to “(2014-12-27) Finding Attributes Marked As Members Of Filtered Attribute Set (FAS)”

  1. joe said

    adfind -sc !ropasl
    adfind -sc ropasl

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: