Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: [ActiveDir] Populating XML data in AD attribute
Prev Next
You are not authorized to post a reply.

AuthorMessages
ZJORZUser is Offline

Posts:282

07/20/2008 6:34 PM  
Hi,

Does anyone know a way to populate XML formatted data into an AD
attribute?

ADFIND can read it, but that is not the problem. However HOW to write it
into the attribute in AD?. Anyone have experience or ideas on how to do
this?

Background: CLM 2007 introduces new objects and attributes in AD. One of
the objects being the "Profile Template" contains an attribute called
"msClm-Data". For an example of the data it contains see below (the BOLD
part)!

Thanks!

Met vriendelijke groeten / Kind regards,

Ing. Jorge de Almeida Pinto
Senior Technical Consultant
MVP Identity & Access - Directory Services

* This posting is provided "AS IS" with no warranties and confers no
rights!
* Always test before implementing!
________________________________________________________________
MVP Profile --> https://mvp.support.microsoft.com/profile/jorge1
BLOG --> http://blogs.dirteam.com/blogs/jorge/default.aspx
________________________________________________________________



Using server: RFSRWDC1.ADCORP.LAB:389
Directory: Windows Longhorn
Base DN: CN=Profile Templates,CN=Public Key
Services,CN=Services,CN=Configuration,DC=ADCORP,DC=LAB

dn:CN=CLM Sample Smart Card Logon Profile Template,CN=Profile
Templates,CN=Public Key
Services,CN=Services,CN=Configuration,DC=ADCORP,DC=LAB
>objectClass: top
>objectClass: msClm-ProfileTemplate
>cn: CLM Sample Smart Card Logon Profile Template
>description: Description of the template goes here
>distinguishedName: CN=CLM Sample Smart Card Logon Profile
Template,CN=Profile Templates,CN=Public Key
Services,CN=Services,CN=Configuration,DC=ADCORP,DC=LAB
>instanceType: 4
>whenCreated: 20080613090620.0Z
>whenChanged: 20080613090621.0Z
>displayName: CLM Sample Smart Card Logon Profile Template
>uSNCreated: 23545
>uSNChanged: 23546
>showInAdvancedViewOnly: TRUE
>name: CLM Sample Smart Card Logon Profile Template
>objectGUID: {0CDB1E15-2A4B-4A64-AF0F-82F10219DAAF}
>flags: 1
>versionNumber: 0
>objectCategory:
CN=ms-Clm-Profile-Template,CN=Schema,CN=Configuration,DC=ADCORP,DC=LAB
>certificateTemplates: SmartcardLogon
>dSCorePropagationData: 20080714072116.0Z
>dSCorePropagationData: 20080714072116.0Z
>dSCorePropagationData: 16010101000417.0Z
>msClm-Data: <?xml version="1.0" encoding="utf-16"?>
<UserProfileData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ProfileType>SmartCard</ProfileType>
<Name>CLM Sample Smart Card Logon Profile Template</Name>
<Templates>
<CertificateTemplateData>
<TargetCA>
<CertificateAuthority>
<Name>ROOT-CA-FOR-ILM1</Name>
<Server>RFSMBSV2.ADCORP.LAB</Server>
</CertificateAuthority>
</TargetCA>
<ShowAdvancedOptions>false</ShowAdvancedOptions>
<AllowRawRequest>false</AllowRawRequest>
<Name>SmartcardLogon</Name>
</CertificateTemplateData>
</Templates>
<ExternalCertificatesSettings>
<NumberOfCertificatesToCopy>0</NumberOfCertificatesToCopy>
<MatchingRule />
</ExternalCertificatesSettings>
<ServerKeyGenerationSettings>
<ServerGeneratesArchivedKeys>false</ServerGeneratesArchivedKeys>
<KeyGeneratorData />
</ServerKeyGenerationSettings>
<SmartCardConfig>
<UserPinFlag>ServerDistributed</UserPinFlag>
<UserPin>
<MinLength>10</MinLength>
<MaxLength>10</MaxLength>
<CharacterSet>Ascii</CharacterSet>
<Rollover>false</Rollover>
<DefaultValue>11111111</DefaultValue>
</UserPin>

<SNIP> (what is shown above is JUST a very small part of the XML data.
There is a lot more!)

You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] Populating XML data in AD attribute



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:mish
New TodayNew Today:2
New YesterdayNew Yesterday:5
User CountOverall:4858

People OnlinePeople Online:
VisitorsVisitors:54
MembersMembers:0
TotalTotal:54

Online NowOnline Now:

Ads

Copyright 2009 ActiveDir.org
Terms Of Use