upgrade script

Lukasz Zalewski lukas at eecs.qmul.ac.uk
Wed Apr 6 14:01:10 MDT 2011


On 05/04/2011 21:16, Aaron E. wrote:
> I thank you very much Sir, let me take a look at this and see if I can't
> get it to do something, tips are appreciated with no documentation they
> are golden...
>
> I am receiving the following trying to use the script whether I specify
> an ldif file or not..
>
> Traceback (most recent call last):
> File "./myldap-pub.py", line 1934, in <module>
> ldap_cmd.run()
> File "./myldap-pub.py", line 1846, in run
> myldap = MyLDAPRemote(options.ldap_uri, options.ldap_binddn,
> binddn_passwd, options.ldap_starttls)
> File "./myldap-pub.py", line 1745, in __init__
> self.ldap = ldap.initialize(uri)
> File "/usr/lib64/python2.7/site-packages/ldap/functions.py", line 85, in
> initialize
> return LDAPObject(uri,trace_level,trace_file,trace_stack_limit)
> File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 69,
> in __init__
> self._l = ldap.functions._ldap_function_call(_ldap.initialize,uri)
> File "/usr/lib64/python2.7/site-packages/ldap/functions.py", line 57, in
> _ldap_function_call
> result = func(*args,**kwargs)
> TypeError: must be string, not None
Hi Aaron,
What is the cmd line invocation that you are using? To find out what 
options are available please run
./myldap-pub.py --help

To use ldif file please start with:

./myldap-pub.py --input_ldif myldiffile.ldif --input_domain_name 
'MYS3DOM' --input_basedn 'dc=mys3,dc=ldap,dc=base,dc=dn' --output_basedn 
'DC=mys4,DC=base,DC=dn'

You might have to provide few more attributes (depending on how 
customised you want your conversion) but the above should get you started

HTH

Luk


More information about the samba-technical mailing list