upgrade script

Aaron E. ssureshot at gmail.com
Fri Apr 8 14:17:45 MDT 2011


Thanks for the reply and help, I have gotten that worked out and am now 
getting the following error. Any direction is greatly appreciated..

/myldap-pub.py --input_ldif=ldap.dump.ldif --input_domain_name=CONVERT 
--input_basedn=dc=convert,dc=com --output_basedn=DC=convert,DC=com 
--remove_input_attributes 
'phpgwAccountExpires,phpgwAccount,phpgwAccountType'# wellknown SID: 
S-1-5-21-496710657-683828429-1874078741-512 => 
<SID=S-1-5-21-496710657-683828429-1874078741-512>

# wellknown SID: S-1-5-21-496710657-683828429-1874078741-514 => 
<SID=S-1-5-21-496710657-683828429-1874078741-514>

Traceback (most recent call last):
   File "./myldap-pub.py", line 1934, in <module>
     ldap_cmd.run()
   File "./myldap-pub.py", line 1927, in run
     user_principal_name=options.user_principal_name)
   File "./myldap-pub.py", line 449, in __init__
     computer_replace_attrs=computer_replace_attrs)
   File "./myldap-pub.py", line 1654, in convertObjects
     output_display=bool(import_type & IMPORT_TYPE_GROUPS))
   File "./myldap-pub.py", line 1507, in convert_sambaGroupMapping
     "sid[%s] doesn't belong to domain[%s]" % (sid, domain_sid)
NameError: global name 'sid' is not defined


On 04/06/2011 04:01 PM, Lukasz Zalewski wrote:
> 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