Stefan Zoerner wrote:
---
heather = [:]
heather.objectclass = ['top', 'person']
heather.sn = 'Nova'
heather.cn = 'Heather Nova'

con.add('cn=Heather Nova,dc=example,dc=com', heather)
---

I like it syntactically :-)


In fact, I am a Groovy newbie. It is even more simpler, if you write the entry map like this:

---

heather = [
  objectclass: ['top', 'person'],
  sn: 'Nova',
  cn: 'Heather Nova'
]
con.add('cn=Heather Nova,dc=example,dc=com', heather)

---


Greetings,
    Stefan


Reply via email to