Re: [Freeipa-users] What is the best way to make batch changes to the LDAP?

2012-06-27 Thread Martin Kosek
On 06/27/2012 01:56 AM, Joe Linoff wrote: Hi Everybody: Here is a python approach that I am experimenting with based on reading the source code. It seems to work but it is re-entrant? Does this make sense? Is there a better way (like ldapmodify)? #!/usr/bin/env python # #

Re: [Freeipa-users] What is the best way to make batch changes to the LDAP?

2012-06-27 Thread Joe Linoff
Hi Martin: Excellent! Thank you. Regards, Joe -Original Message- From: Martin Kosek [mailto:mko...@redhat.com] Sent: Tuesday, June 26, 2012 11:34 PM To: Joe Linoff Cc: freeipa-users@redhat.com Subject: Re: [Freeipa-users] What is the best way to make batch changes to the LDAP? On

Re: [Freeipa-users] What is the best way to make batch changes to the LDAP?

2012-06-27 Thread Joe Linoff
Hi Martin: Just a quick follow up: your suggestion worked great. Here is a little code fragment that emulates the ipa user-find --all operation. I am including it in the hopes that it will help someone else. START #!/usr/bin/env python # # Demonstrate how to get the contents of the command #

Re: [Freeipa-users] What is the best way to make batch changes to the LDAP?

2012-06-26 Thread Joe Linoff
Hi Everybody: Here is a python approach that I am experimenting with based on reading the source code. It seems to work but it is re-entrant? Does this make sense? Is there a better way (like ldapmodify)? #!/usr/bin/env python # # Emulate the ipa command line interface in a script so