> cn=P148348,ou=staff,o=RUG,c=NL,
cn=P141922,ou=staff,o=RUG,c=NL,
> cn=naam,ou=Adm,o=RUG,c=NL,
cn=P137308,ou=staff,o=RUG,c=NL,
> cn=P218384,ou=staff,o=RUG,c=NL
You're making your own life a bit difficult by using the same
character
(comma) for delimiting elements of a given address (between
each cn, ou, o,
c), and between each whole address.
You should make sure to specify a DIFFERENT character for the
separator and
the delimiter. Here's the docs:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000283.htm
Having done that, you can simple loop over the list of
individual addresses
(using SEPARATOR as the delimiter), then treat an address as
a list
delimited by DELIMITER (get the CN part by using
listFirst()), and the
actual value of the CN by doing a listLast() using = as the
delim.
--
Adam