# Passing EntireX Security and Natural Security parameters

**URL:** <https://techcommunity.softwareag.com/t/passing-entirex-security-and-natural-security-parameters/59195>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX-DCOM\
**Created:** [March 19, 2005, 1:01am UTC](https://techcommunity.softwareag.com/t/passing-entirex-security-and-natural-security-parameters/59195 "2005-03-19T01:01:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaJuan](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@LaJuan](https://techcommunity.softwareag.com/u/LaJuan)\
**Post date:** [March 19, 2005, 1:01am UTC](https://techcommunity.softwareag.com/t/passing-entirex-security-and-natural-security-parameters/59195/1 "2005-03-19T01:01:37Z")

</div>

Does anyone have a generic class module and/or code snippet of how to pass user id and password for EntireX Security and Natural from a VB client to mainframe using EntireX Communicator and broker?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [March 30, 2005, 12:39am UTC](https://techcommunity.softwareag.com/t/passing-entirex-security-and-natural-security-parameters/59195/2 "2005-03-30T00:39:39Z")

</div>

Assuming you are using the DCOM wrapper and VB6 or ASP (not .Net), you can use VBScript such as:

\<%  
dim obj  
set obj = Server.CreateObject(“EOL.TESTRPC”)  
’ EntireX Security logon  
obj.UserID = “USER00” 'Request.Form(“USERID”)  
obj.Password = “PWD” 'Request.Form(“password”)  
’ if RPC server has LOGONRQ=ON, NaturalLogon must be Y. Optional otherwise  
objCalc.NaturalLogon = “Y”   
obj.RpcUserID = obj.UserID  
obj.RpcPassword = “NSSPWD”  
obj.Logon

dim result  
’ invoke DCOM object to invoke RPC to call function on mainframe Natural  
result = obj.DCOM001()

objCalc.MYPROG operator, result

Response.Write(“  
” & result)  
obj.Logoff  
%\>

---

<div class="post-metadata">

**Author:** ![LaJuan](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@LaJuan](https://techcommunity.softwareag.com/u/LaJuan)\
**Post date:** [March 30, 2005, 12:52am UTC](https://techcommunity.softwareag.com/t/passing-entirex-security-and-natural-security-parameters/59195/3 "2005-03-30T00:52:10Z")

</div>

Thank you Douglas.

---

<div class="post-metadata">

**Author:** ![Guilherme\_Andre](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@Guilherme\_Andre](https://techcommunity.softwareag.com/u/Guilherme_Andre)\
**Post date:** [July 7, 2008, 6:10pm UTC](https://techcommunity.softwareag.com/t/passing-entirex-security-and-natural-security-parameters/59195/4 "2008-07-07T18:10:52Z")

</div>

Hi LaJuan and Douglas. Im new on this forum, can you help me with the property .NewPassword on DCOM objects? Im using this but didnt work.

I posted one topic on this forum at the address: [http://tech.forums.softwareag.com/viewtopic.php?C=&p=45857#45857](http://tech.forums.softwareag.com/viewtopic.php?C=&p=45857#45857)

Im writted one little code on Delphi, ASP and [ASP.Net](http://ASP.Net) to change the password on Natural Security via DCOM.NewPassword but this not work.

Tanks a lot in advance!!!

Best regards.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/passing-entirex-security-and-natural-security-parameters/59195/5 "2021-04-02T14:39:42Z")

</div>


