XIV and AD users

When you use Active Directory for user authorization on XIV then user name usually contains character "@".
When there is this character then wbemcli program we use for getting data from XIV does not recognize user name properly.

We have patched wbemcli-1.6.3 to make it work.
Either get binnary from here or patch and compile it yourself.

Patch it yourself

  • Download source package sblim-wbemcli-1.6.3 from Internet

  • Install it and edit CimXml.cpp, search for below line and change strchr() to strrchr()
    # cd sblim-wbemcli-1.6.3
    # vi CimXml.cpp
      phelp=strchr(u,'@'); // potential auth token delimiter
      phelp=strrchr(u,'@'); // potential auth token delimiter
  • Make binary
    # ./configure
    # make
  • Get wbemcli binary and replace /usr/bin/wbemcli (/opt/freeware/bin/wbemcli on AIX)

Precompiled binnaries

    Gunzip it, rename it to wbemcli and replace by your existing one under root:
    (use /opt/freeware/bin/wbemcli on AIX)
    # gunzip wbemcli_x86_64.gz
    # cp /usr/bin/wbemcli /usr/bin/wbemcli_org
    # cp wbemcli_x86_64 /usr/bin/wbemcli

Test it

    # su - stor2rrd  # (lpar2rrd user on the Virtual Appliance)
    $ cd /home/stor2rrd/stor2rrd
    $ ./bin/config-check.sh