5.2.5.1 Configuring Security in the ATMI Domain
- Edit the
UBBCONFIGfile.- In the
RESOURCESsection, addSECURITY USER_AUTH. - In the
SERVERSsection, add theAUTHSVRserver.
Note:
SECURITY USER_AUTHlevel implies that application passwords, user IDs, and user passwords are required to join the application.AUTHSVRis the ATMI-supplied authentication server. It advertises the serviceAUTHSVC. - In the
- Enter the
tmloadcfcommand to load the ATMI configuration, for example:tmloadcf -y ubbconfig.sna - Set the application password. (The
tmloadcfcommand prompts for the application password.) - Add users to the ATMI domain by using the
tpusraddcommand. The command prompts for each password, for example:tpusradd me(Enter password for
me.)Note:
Do not use the commandtpaddusr. - Modify the ATMI client to specify security parameters in the
tpinitcall. the following isting 4‑1 is an example of the code to do this.Listing Security Parameters Added to
tpinitCallTPINIT *tpinitbuf; char passwd[30]; int security_level; /* Initialize security parameters */ if ((tpinitbuf = (TPINIT *) tpalloc("TPINIT", NULL, TPINITNEED(sizeof(passwd)))) == NULL) { userlog("tpalloc tpinit failed %s \n", tpstrerror(tperrno)); exit(1); } strcpy(tpinitbuf->usrname,""); strcpy(tpinitbuf->cltname,""); strcpy(tpinitbuf->passwd,""); strcpy(tpinitbuf->grpname,""); /* Determine level of enforced security */ security_level = tpchkauth(); if ((security_level == TPSYSAUTH) || (security_level == TPAPPAUTH)) { fprintf(stdout,"\nApplication passwd required."); fprintf(stdout,"\nApplication passwd:"); gets(tpinitbuf->passwd); } if (security_level == TPAPPAUTH) { fprintf(stdout,"\nUser Name required."); fprintf(stdout,"\nUser Name:"); gets(tpinitbuf->usrname); fprintf(stdout,"\nUser Password required."); fprintf(stdout,"\nUser Password:"); gets(passwd); strcpy(&tpinitbuf->data,passwd); tpinitbuf->datalen=strlen(passwd); } if (tpinit(tpinitbuf) == -1) { userlog("TPINIT %s \n", tpstrerror(tperrno)); exit(1); } - Verify security in the ATMI domain by running the client.
- Enter the
dmloadcfcommand to load the domain configuration. For example:dmloadcf -y dmconfig.sna - Enter the
tmbootcommand to boot the ATMI domain, for example:tmboot -y - Configure security for the SNA domain by editing the
DMCONFIGfile.- In the
DM_LOCAL_DOMAINSsection, add the parameter:SECURITY=DM_USER_PW - In the
DM_SNALINKSsection, add the parameter for the remote link:SECURITY=VERIFY
- In the
- Add the user name mapping for the remote domain by invoking
dmadminand using theaddumapcommand to map local user IDs to remote user IDs. For example:dmadmin >addumap -d myldom -R myrdom -p localme -u REMOTEME -
Add a password for remote user IDs for the remote domain by invoking
dmadminand using theaddusrcommand to provide remote password(s). For example:dmadmin >addusr -d myldom -R myrdom -u REMOTEME(The system responds with the following prompts:
ERROR: Enter Remote User's Password: ERROR: Re-enter Remote User's Password:)
Parent topic: Setting Security Scenario