Re: Split entries from LDAP

2008-10-13 Thread Michael Ströder
Lars wrote: > I'm trying > to create a script that creates a variable list (just a txt file to be > included in bash scripts) with hosts from LDAP. What exactly do you want to do? I'd recommend against passing a custom text format around. Use either LDIF or CSV with decent modules. > The file wil

Re: Split entries from LDAP

2008-10-12 Thread paul
Lars schrieb: I got all the entries in the variable "raw_res" and I now got some doubts on how to split each value up in every entry. Belove you can see one of entries printed from the loop. cn=world.dom.dk,ou=Hosts,o=Users,dc=dom,dc=dk', {'ipHostNumber': ['192.168.0.43'], 'cn': ['world.dom.dk'],

Split entries from LDAP

2008-10-11 Thread Lars
Hi I got some programming experience and I recently started looking into Python. I've read much of the tutorial from 2.6 documentation. But it was more interesting to get started on something I needed. I'm trying to create a script that creates a variable list (just a txt file to be included in bas