First, is there a reason you are not using something like the identities collector? I believe this is already made to handle LDIF files, and while it is listed to work with microsoft active directory (MAD) I do not know that this is really a requirement. Even if it does not work out perfectly, it should have some useful code for you to parse this input assuming you cannot do so with a properly LDAP class.
Also, what does "but dont work" mean exactly in your case? How does it not work?
Is there a reason your regular expression is requiring at least three characters before the colon? I suspect that is not what you want since not even 'dn' has three characters. Also, I do not see anything there making your regular expression's character class case-insensitive and since you're using upper case I would expect that to fail for all of your lines since all of those attributes are appropriately lower-case, at least at the beginning.
-- Good luck.
If you find this post helpful and are logged into the web interface, show your appreciation and click on the star below...
in first thanks for your help. let me explain, i need to create a parse with this expression to capture 3 values into 3 variables: fndeCpf into var CPF fndeFullName into var User and a complete line begins with word "filter: ", because that i have that expression.
I have download the microsoft-ad-identity to edit.
but i want to see any release.js to know how can i put my custom expression and atribute parts of that for the var and show this in my report.