Jump to content

Extracting Data From LDAP


binarybiker
 Share

Recommended Posts

How do I extract just a part of a string of text from a field in an LDAP directory?My XSLT grabs all the fields I need successfully, except for fields that have a fullpath.Example:I have a supervisor field that has the following data in it:CN=dmorgan,OU=Users,OU=Chicago,DC=ad,DC=thecompany,DC=orgAll I want to return is dmorganIn another select statement, all I want to return is Chicago.I know I need to modify the 'value-of' statement below, but I don't know the syntax.<xsl:element name="Field"> <xsl:attribute name="Name"><xsl:text>Supervisor</xsl:text></xsl:attribute> <xsl:value-of select="manager"/> </xsl:element>Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...