Is this script supposed to be part of the openlmi-providers examples or distribution? Please feel free to close this bug if that's not the case. http://jdennis.fedorapeople.org/realmd-cim It's not included in the openlmi-providers repository. Secondly, it makes you type two passwords on the command line. This is insecure.
This script was in the original git repo under doc/examples, the only reason for the link in comment #1 was to make easily available for test day. The script is supposed to an example "scription". At the time of it's writing scripton's had not been nailed down including the common connect and authenticate part which is supposed to be shared between scriptions. So while the method to get the password may not be ideal it was a place holder until the scription framework was worked out.
I don't think John Dennis is working on this anymore.
There is a special lmi metacommand now for realmd. This bug is obsolete.