OES11 SP1 - Transfer ID migration fails when the source server name contains "-W" in the name.

  • 7011870
  • 04-Mar-2013
  • 25-Mar-2013


Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3
Novell Open Enterprise Server 11 (OES 11)


Environment :
  • OES 2 SP3 - Source server
  • OES11 SP1 - Destination server
  • Transfer-ID migration

When performing a Transfer-ID migration from OES2 SP3 to any version of OES11, it was found that the migration failed in the migldap.rb script when the source server contained a '-W' in the name.

For example : "SERV-Win-1"


The /usr/lib64/ruby/gems/1.8/gems/migration-1.0.4/lib/migration/migldap.rb was modified  to properly handle the '-W' in the server name.

This will be resolved in a future support pack.

Until t he solution is released publicly, the following change is required to make the migration tools handle the '-W'  :
- index = cmd.index("-W")
+ index = cmd.index(" -W ")
rep_cmd = cmd[0...index]+" -w"+" \"#{options[password]}\""
- rem_cmd = cmd[index+2,cmd.length]
+ rem_cmd = cmd[index+3,cmd.length


The /usr/lib64/ruby/gems/1.8/gems/migration-1.0.4/lib/migration/migldap.rb  did not properly escape the '-W' option found in the server name.

Additional Information

Detail taken from the migration log files that revealed the problem :

sh -c ldapsearch -LLL -s sub -H ldaps://xxx.xxx.xxx.xxx -x -D "cn=admin,o=lab"
"(&(SERV -w "xxxxxxxx"in-1_*)(|(objectClass=Volume)(objectClass=ndsVolume)) )"
linuxNCPMountPoint -W 2>/tmp/mig-err.txt>&1