CPF4207 -Authorization failure on DDM TCP/IP connection attempt

Posted on 2006-05-17
Last Modified: 2012-06-27
I am getting an error MSG CPF4207 with reason code 6 (User ID not valid. For a iseries  server this could mean a damaged user profile or PASSWORD(*NONE)) . But when I check to User Id in the remote System-B that userid is good .This particular User id is not Present in another system-A  Where the actual Physical File Exist.
I have created that same User Id in System-A, this problem Fixed I not getting this error any more.
The problem is We cannot create all the available user Id in System-B to System-A.  Is there any way to Solve this problem like Compiling the PGM with *CALLER  Things like that .

If you need any more Explanation Please let me know.

Question by:midwestexp
    LVL 13

    Accepted Solution

    Hi, MW
    You can add a server authentication entry for each user on the source system (using a program) that will allow them all to use the same user on the target system.
    You need to set QRETSVRSEC to 1 if passwords are required on the source system.

    The command looks like:
    ADDSVRAUTE USRPRF(localuser) SERVER(remotedatabase) USRID(remoteuser)

    Details, including the source for the program that adds the entries, are at:

    Post back any questions!

    Author Comment

    Hi BH,
    Source System means  the system where DDM resides,
    Target System Means the system where PF resides,  am i right ?

    According  to this Docement i have to have one userid In the Target System(PF)
    and use ADDSVRAUTE  for all the required user in Source System  who are all goin to use that DDM in the Target System.

    "set QRETSVRSEC to 1 if passwords are required on the source system"  Please explain this to me where to set and what do you mean passwords are required

    LVL 13

    Expert Comment

    You can WRKSYSVAL QRETSVRSEC then option 5 to display it and 2 to change it.
    Yes the source is where the DDM file is and the target is where the pf lives.

    Author Comment

    Thank youuuuuuuuuuuuuuuuuuuuuuuuuuu

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now