Requirements:
Usage:
| ncpwhoami | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| -s | Specify the separator between fields (default is tabulation) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -T tree_name | Restrict to permanent connections to tree treeName | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -S | Restrict to permanent connections to server serverName | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -g | Global; all connections for all users (only root can do that) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -1 | In the case of several connections to the same tree or server, display only information for the FIRST one (in /etc/mtab order) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -a | Ignore -f and print out all NDS available data in order AaBbCc...012 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -f fieldletter(s) |
Specify fields (A..Z,a..z,0..2) and order of output default= -f TSVUX ( Tree ServerName MountedVolumeName UnixName NetwareName)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
examples:
INSA_ROOT CIPCINSA SYS PPOLLET root
Everyone,Profs,Staff,Become,GroupMail,Rocad,Clubif,API,Become.GCP,Profs1eu,Profs2eu,WebMaster,BornesOK.Zen:INSA_ROOT:PPOLLET:root Note that multivalued attribute (Group memberShip) values are comma separated and that names are relative to my default context (set to PC in /etc/profile)
Try it for yourself ;-)
| ncpreadprop With multivalued attributes output will be one per line | |
|---|---|
| -o | object_name Object name (default me) |
| -A | quoted attribut_name mandatory |
| -T | treename |
| -c | context Default= [root] |
| -v | value Context DCK_FLAGS default=0 (Typed Names, 4 : typeless names) |
examples:
CN=Everyone.O=PC CN=Profs.O=PC ... CN=BornesOK.OU=Zen.O=PC
Everyone.PC Profs.PC ... BornesOK.Zen.PC
Everyone Profs ... BornesOK.Zen[root@prope contrib]# ncpreadprop -o ppollet.PC -A "Group MemberShip" -c PC # error (ppollet.PC does not exist in context PC)
NWDSRead() failed with No such entry (-601)
| ncpreadprops Same arguments as ncpreadprops but | |
|---|---|
| -A attribute_list | Mandatory: One NDS attribute or a comma separated list (quoted) |
| -f character | separator between attributes (default= :) |
| -m character | separator between values of multi-valued attributes (default = space) |
examples:
Everyone.PC Profs.PC Staff.PC Become.PC GroupMail.PC Rocad.PC Clubif.PC API.PC Become.GCP.PC Profs1eu.PC Profs2eu.PC WebMaster.PC PropeOK.Zen.PC DRIJPTOK.Zen.PC fcpcOK.Zen.PC LinuxOk.PC BornesOK.Zen.PC
pollet:Patrick Pollet:Patrick Lucien
TroubleShooting:
Download:
History:
See source code of these utilities.TODO:
Vous êtes notre eme visiteur