Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

hostname setting in ntlm file doesn't affect remoting result #93

Open
BettyBoY opened this issue Mar 24, 2017 · 0 comments
Open

hostname setting in ntlm file doesn't affect remoting result #93

BettyBoY opened this issue Mar 24, 2017 · 0 comments
Assignees

Comments

@BettyBoY
Copy link
Contributor

BettyBoY commented Mar 24, 2017

Steps:

  1. on the server client: vi /etc/opt/omi/.creds/ntlm and give a hostname which doesn't exist at all like 'wronghostname:root:password01'.
  2. on the client try to remote to this server with omicli command.

-u with hostname setting in ntlm file:
/opt/omi/bin/omicli id -u wronghostname\root -p 'password01' --auth NegoWithCreds --hostname psl-cent7x64-01 --port 5986 --encryption https

-u with username without hostname:
/opt/omi/bin/omicli id -u root -p 'password01' --auth NegoWithCreds --hostname psl-cent7x64-01 --port 5986 --encryption https

Expected:
The remote should fail.

Acutal Result:
Both remote connections succeed.

root@psl-cent7x64-02  #  /opt/omi/bin/omicli id  -u psl-cent7x64-0\\root -p 'password01' --auth NegoWithCreds --hostname psl-cent7x64-01 --port 5986 --encryption https
instance of OMI_Identify
{
    InstanceID=2FDB5542-5896-45D5-9BE9-DC04430AAABE
    SystemName=psl-cent7x64-01
    ProductName=OMI
    ProductVendor=Microsoft
    ProductVersionMajor=1
    ProductVersionMinor=2
    ProductVersionRevision=0
    ProductVersionString=1.2.0-35
    Platform=LINUX_X86_64_GNU
    OperatingSystem=LINUX
    Architecture=X86_64
    Compiler=GNU
    ConfigPrefix=GNU
    ConfigLibDir=/opt/omi/lib
    ConfigBinDir=/opt/omi/bin
    ConfigIncludeDir=/opt/omi/include
    ConfigDataDir=/opt/omi/share
    ConfigLocalStateDir=/var/opt/omi
    ConfigSysConfDir=/etc/opt/omi/conf
    ConfigProviderDir=/etc/opt/omi/conf
    ConfigLogFile=/var/opt/omi/log/omiserver.log
    ConfigPIDFile=/var/opt/omi/run/omiserver.pid
    ConfigRegisterDir=/etc/opt/omi/conf/omiregister
    ConfigSchemaDir=/opt/omi/share/omischema
    ConfigNameSpaces={root-omi, interop}
}

root@psl-cent7x64-02 # /opt/omi/bin/omicli id -u root -p 'password01' --auth NegoWithCreds --hostname psl-cent7x64-01 --port 5986 --encryption https
instance of OMI_Identify
{
InstanceID=2FDB5542-5896-45D5-9BE9-DC04430AAABE
SystemName=psl-cent7x64-01
ProductName=OMI
ProductVendor=Microsoft
ProductVersionMajor=1
ProductVersionMinor=2
ProductVersionRevision=0
ProductVersionString=1.2.0-35
Platform=LINUX_X86_64_GNU
OperatingSystem=LINUX
Architecture=X86_64
Compiler=GNU
ConfigPrefix=GNU
ConfigLibDir=/opt/omi/lib
ConfigBinDir=/opt/omi/bin
ConfigIncludeDir=/opt/omi/include
ConfigDataDir=/opt/omi/share
ConfigLocalStateDir=/var/opt/omi
ConfigSysConfDir=/etc/opt/omi/conf
ConfigProviderDir=/etc/opt/omi/conf
ConfigLogFile=/var/opt/omi/log/omiserver.log
ConfigPIDFile=/var/opt/omi/run/omiserver.pid
ConfigRegisterDir=/etc/opt/omi/conf/omiregister
ConfigSchemaDir=/opt/omi/share/omischema
ConfigNameSpaces={root-omi, interop}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants