Ping_Xiong_1567
Apr 18, 2012Historic F5 Account
convert ldapsearch result into external datagroup format
Hi Guys,
I come cross a
requirement to convert a txt file into external datagroup format in background.
The source file is
the result from ldapsearch, something like this:
dn:
r1+sn=test,ou=people,dc=my-domain,dc=com
cn: client1
mailHost: mailserver1
dn:
r2+sn=test,ou=people,dc=my-domain,dc=com
cn: client2
mailHost: mailserver2
I need a scripts
to convert it into external datagroup format like this:
"client1" := "mailserver1",
“client2" := "mailserver2",
Then use datagroup
as a reference to distribution traffic to mailservers.
If anyone has
similar scripts on hand, please share me.
Thanks a lot!!