OPALE - Utilisation

Comment accéder aux partages de fichiers depuis IBMi en utilisant QNTC

De MappingDoc
Révision datée du 16 septembre 2021 à 15:58 par Nturpin (discussion | contributions) (Page créée avec « A traduire et compléter : Question How to access file shares from IBM i using the QNTC file system. Answer The IBM i OS QNTC file system allows the IBM i to act as a... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

A traduire et compléter :


Question

How to access file shares from IBM i using the QNTC file system.

Answer

The IBM i OS QNTC file system allows the IBM i to act as a client in an smb/cifs network and access Windows, Samba and IBM i file servers.

The QNTC file system resides under the Root (/) IBM i file system. WRKLNK '/QNTC/*' will display the external network servers that are hosting network file shares. This list is populated in two ways. The first is dynamically via a browse of the network domain name specified in the IBM i OS NetServer properties. The second is by manually doing an MKDIR '/QNTC/server' where server is replaced by the external server hostname or IP address. All directories under the QNTC file system survive only until the next IPL and must be re-created following the IPL. Directories that were dynamically created via the browse of the network domain should populate again, but directories created via MKDIR will have to be created via MKDIR again.


To connect to external file servers, the IBM i QNTC client must send valid credentials. By default, the IBM i sends the current logged-on users' USRPRF and PWD. However, an interactive user can connect using an alternate IBM i USRPRF via SBMJOB. For example:

SBMJOB CMD(DSPLNK OBJ('/qntc/MyRemoteFileServer/*')) USER(AlternateIBMiUSRPRF)

The AlternateIBMiUSRPRFmust exist on both the client IBM i and MyRemoteFileServer and the passwords must match between those systems.

A significant note to be aware of is that if the IBM i OS QPWDLVL (Password Level) system value is set to 0 or 1 meaning that IBM i OS Passwords can only be 10 characters long, all alphabetic characters are not case-sensitive, may include numbers and the four special characters of #, $, _, or @. When these passwords are passed to the external file server, all alphabetic characters are passed in lowercase.

QPWDLVL values 2 and 3 will pass the case-sensitive stored password.