106 |
), |
), |
107 |
|
|
108 |
}; |
}; |
|
|
|
|
$data{samba} = { |
|
|
|
|
|
# mangling stuff (global - service ?) |
|
|
'mangling method' => { type => 'STRING', values => [ qw(hash hash2) ], default => 'hash' }, |
|
|
'mangle case' => { type => 'BOOLEAN', default => 0 }, |
|
|
'case sensitive' => { type => 'BOOLEAN', default => 0 }, |
|
|
'default case' => { type => 'BOOLEAN', default => 'lower', values => [qw (upper lower)] }, |
|
|
'preserve case' => { type => 'BOOLEAN', default => 1 }, |
|
|
'short preserve case' => { type => 'BOOLEAN', default => 1 }, |
|
|
|
|
|
# global stuff |
|
|
'acl compatibility (G)' => { type => 'STRING' }, |
|
|
'add printer command (G)' => { type => 'COMMAND' }, |
|
|
'add share command (G)' => { type => 'COMMAND' }, |
|
|
'add user script (G)' => { type => 'COMMAND' }, |
|
|
'allow trusted domains' => { type => 'BOOLEAN', default => 1 }, |
|
|
'announce as' => { type => 'STRING', values => [ "NT Server", "NT", "NT Workstation", "Win95", "WfW"], default => 'NT' }, |
|
|
'announce version' => { type => 'VERSION', default => '4.9' }, |
|
|
'auto services' => { type => 'LIST', type2 => 'STRING', type3 => ' '}, |
|
|
'bind interfaces only' => { type => 'LIST', type2 => 'INTERFACE', type3 => ' ' }, |
|
|
'browse list' => { type => 'BOOLEAN', default => 1 }, |
|
|
'change notify timeout' => { type => 'DURATION', type2 => 'SECONDS', default => 60 }, |
|
|
'change share command' => { type => 'COMMAND' }, |
|
|
'character set' => { type => 'ENCODING' }, |
|
|
'client code page' => { type => 'INTEGER', default => 850 }, |
|
|
'code page directory' => { type => 'DIRECTORY' }, |
|
|
'coding system' => { type => 'STRING' }, |
|
|
'config file' => { type => 'FILENAME' }, |
|
|
'deadtime' => { type => 'DURATION', type2 => 'MINUTES', default => 0 }, |
|
|
'debug hires timestamp' => { type => 'BOOLEAN', default => 0 }, |
|
|
'debug pid' => { type => 'PID' }, |
|
|
'debug timestamp' => { type => 'BOOLEAN', default => 1 }, |
|
|
'debug uid' => { type => 'BOOLEAN', default => 0 }, |
|
|
'debuglevel' => { type => 'INTEGER', default => 0 }, |
|
|
'default' => { type => 'LIST', type2 => 'STRING' }, |
|
|
'default service' => { type => 'LIST', type2 => 'STRING' }, |
|
|
'delete printer command' => { type => 'COMMAND' }, |
|
|
'delete share command' => { type => 'COMMAND' }, |
|
|
'delete user script' => { type => 'COMMAND' }, |
|
|
'dfree command' => { type => 'COMMAND' }, |
|
|
'disable spoolss' => { type => 'BOOLEAN', default => 0}, |
|
|
'dns proxy' => { type => 'BOOLEAN', default => 1 }, |
|
|
'domain admin group' => { type => 'LIST', type2 => 'SMB_UID|SMB_GID', type3 => ' ' }, |
|
|
'domain guest group' => { type => 'LIST', type2 => 'SMB_UID|SMB_GID', type3 => ' ' }, |
|
|
'domain logons' => { type => 'BOOLEAN', default => 0 }, |
|
|
'domain master' => { type => 'STRING', default => 'auto' }, |
|
|
'encrypt passwords' => { type => 'BOOLEAN', default => 0 }, |
|
|
'enhanced browsing' => { type => 'BOOLEAN', default => 1}, |
|
|
'enumports command' => { type => 'COMMAND' }, |
|
|
'getwd cache' => { type => 'BOOLEAN', default => 1}, |
|
|
'hide local users' => { type => 'BOOLEAN', default => 0}, |
|
|
'hide unreadable' => { type => 'BOOLEAN', default => 0}, |
|
|
'homedir map' => { type => 'STRING' }, |
|
|
'host msdfs' => { type => 'BOOLEAN', default => 0}, |
|
|
'hosts equiv' => { type => 'FILENAME' }, |
|
|
'interfaces' => { type => 'LIST', type2 => 'STRING|INTERFACE|IP/MASK', type3 => ' '}, |
|
|
'keepalive' => { type => 'DURATION', type2 => 'SECONDS', default => '300'}, |
|
|
'kernel oplocks' => { type => 'BOOLEAN', default => 1}, |
|
|
'lanman auth' => { type => '', }, |
|
|
'large readwrite' => { type => '', }, |
|
|
'ldap admin dn' => { type => '', }, |
|
|
'ldap filter' => { type => '', }, |
|
|
'ldap port' => { type => '', }, |
|
|
'ldap server' => { type => '', }, |
|
|
'ldap ssl' => { type => '', }, |
|
|
'ldap suffix' => { type => '', }, |
|
|
'lm announce' => { type => '', }, |
|
|
'lm interval' => { type => '', }, |
|
|
'load printers' => { type => '', }, |
|
|
'local master' => { type => '', }, |
|
|
'lock dir' => { type => '', }, |
|
|
'lock directory' => { type => '', }, |
|
|
'lock spin count' => { type => '', }, |
|
|
'lock spin time' => { type => '', }, |
|
|
'pid directory' => { type => '', }, |
|
|
'log file' => { type => '', }, |
|
|
'log level' => { type => '', }, |
|
|
'logon drive' => { type => '', }, |
|
|
'logon home' => { type => '', }, |
|
|
'logon path' => { type => '', }, |
|
|
'logon script' => { type => '', }, |
|
|
'lpq cache time' => { type => '', }, |
|
|
'machine password timeout' => { type => '', }, |
|
|
'mangled stack' => { type => '', }, |
|
|
'mangling method' => { type => '', }, |
|
|
'map to guest' => { type => '', }, |
|
|
'max disk size' => { type => '', }, |
|
|
'max log size' => { type => '', }, |
|
|
'max mux' => { type => '', }, |
|
|
'max open files' => { type => '', }, |
|
|
'max protocol' => { type => '', }, |
|
|
'max smbd processes' => { type => '', }, |
|
|
'max ttl' => { type => '', }, |
|
|
'max wins ttl' => { type => '', }, |
|
|
'max xmit' => { type => '', }, |
|
|
'message command' => { type => '', }, |
|
|
'min passwd length' => { type => '', }, |
|
|
'min password length' => { type => '', }, |
|
|
'min protocol' => { type => '', }, |
|
|
'min wins ttl' => { type => '', }, |
|
|
'name resolve order' => { type => '', }, |
|
|
'netbios aliases' => { type => '', }, |
|
|
'netbios name' => { type => '', }, |
|
|
'netbios scope' => { type => '', }, |
|
|
'nis homedir' => { type => '', }, |
|
|
'nt pipe support' => { type => '', }, |
|
|
'nt smb support' => { type => '', }, |
|
|
'nt status support' => { type => '', }, |
|
|
'null passwords' => { type => '', }, |
|
|
'obey pam restrictions' => { type => '', }, |
|
|
'oplock break wait time' => { type => '', }, |
|
|
'os level' => { type => '', }, |
|
|
'os2 driver map' => { type => '', }, |
|
|
'pam password change' => { type => '', }, |
|
|
'panic action' => { type => '', }, |
|
|
'passwd chat' => { type => '', }, |
|
|
'passwd chat debug' => { type => '', }, |
|
|
'passwd program' => { type => '', }, |
|
|
'password level' => { type => '', }, |
|
|
'password server' => { type => '', }, |
|
|
'prefered master' => { type => '', }, |
|
|
'preferred master' => { type => '', }, |
|
|
'preload' => { type => '', }, |
|
|
'printcap' => { type => '', }, |
|
|
'printcap name' => { type => '', }, |
|
|
'printer driver file' => { type => '', }, |
|
|
'protocol' => { type => '', }, |
|
|
'read bmpx' => { type => '', }, |
|
|
'read raw' => { type => '', }, |
|
|
'read size' => { type => '', }, |
|
|
'remote announce' => { type => '', }, |
|
|
'remote browse sync' => { type => '', }, |
|
|
'restrict anonymous' => { type => '', }, |
|
|
'root' => { type => '', }, |
|
|
'root dir' => { type => '', }, |
|
|
'root directory' => { type => '', }, |
|
|
'security' => { type => '', }, |
|
|
'server string' => { type => '', }, |
|
|
'show add printer wizard' => { type => '', }, |
|
|
'smb passwd file' => { type => '', }, |
|
|
'socket address' => { type => '', }, |
|
|
'socket options' => { type => '', }, |
|
|
'source environment' => { type => '', }, |
|
|
'ssl' => { type => '', }, |
|
|
'ssl CA certDir' => { type => '', }, |
|
|
'ssl CA certFile' => { type => '', }, |
|
|
'ssl ciphers' => { type => '', }, |
|
|
'ssl client cert' => { type => '', }, |
|
|
'ssl client key' => { type => '', }, |
|
|
'ssl compatibility' => { type => '', }, |
|
|
'ssl egd socket' => { type => '', }, |
|
|
'ssl entropy bytes' => { type => '', }, |
|
|
'ssl entropy file' => { type => '', }, |
|
|
'ssl hosts' => { type => '', }, |
|
|
'ssl hosts resign' => { type => '', }, |
|
|
'ssl require clientcert' => { type => '', }, |
|
|
'ssl require servercert' => { type => '', }, |
|
|
'ssl server cert' => { type => '', }, |
|
|
'ssl server key' => { type => '', }, |
|
|
'ssl version' => { type => '', }, |
|
|
'stat cache' => { type => '', }, |
|
|
'stat cache size' => { type => '', }, |
|
|
'strip dot' => { type => '', }, |
|
|
'syslog' => { type => '', }, |
|
|
'syslog only' => { type => '', }, |
|
|
'template homedir' => { type => '', }, |
|
|
'template shell' => { type => '', }, |
|
|
'time offset' => { type => '', }, |
|
|
'time server' => { type => '', }, |
|
|
'timestamp logs' => { type => '', }, |
|
|
'total print jobs' => { type => '', }, |
|
|
'unix extensions' => { type => '', }, |
|
|
'unix password sync' => { type => '', }, |
|
|
'update encrypted' => { type => '', }, |
|
|
'use mmap' => { type => '', }, |
|
|
'use rhosts' => { type => '', }, |
|
|
'username level' => { type => '', }, |
|
|
'username map' => { type => '', }, |
|
|
'utmp' => { type => '', }, |
|
|
'utmp directory' => { type => '', }, |
|
|
'valid chars' => { type => '', }, |
|
|
'winbind cache time' => { type => '', }, |
|
|
'winbind enum users' => { type => '', }, |
|
|
'winbind enum groups' => { type => '', }, |
|
|
'winbind gid' => { type => '', }, |
|
|
'winbind separator' => { type => '', }, |
|
|
'winbind uid' => { type => '', }, |
|
|
'winbind use default domain' => { type => '', }, |
|
|
'wins hook' => { type => '', }, |
|
|
'wins proxy' => { type => '', }, |
|
|
'wins server' => { type => '', }, |
|
|
'wins support' => { type => '', }, |
|
|
'workgroup' => { type => '', }, |
|
|
'write raw' => { type => '', }, |
|
|
'' => { type => '', }, |
|
|
|
|
|
|
|
|
#Here is a list of all service parameters. See the section on each parameter for details. Note that some are synonyms. |
|
|
|
|
|
|
|
|
'admin users' => { type => '', }, |
|
|
'allow hosts' => { type => '', }, |
|
|
'available' => { type => '', }, |
|
|
'blocking locks' => { type => '', }, |
|
|
'block size' => { type => '', }, |
|
|
'browsable' => { type => '', }, |
|
|
'browseable' => { type => '', }, |
|
|
'case sensitive' => { type => '', }, |
|
|
'casesignames' => { type => '', }, |
|
|
'comment' => { type => '', }, |
|
|
'copy' => { type => '', }, |
|
|
'create mask' => { type => '', }, |
|
|
'create mode' => { type => '', }, |
|
|
'csc policy' => { type => '', }, |
|
|
'default case' => { type => '', }, |
|
|
'default devmode' => { type => '', }, |
|
|
'delete readonly' => { type => '', }, |
|
|
'delete veto files' => { type => '', }, |
|
|
'deny hosts' => { type => '', }, |
|
|
'directory' => { type => '', }, |
|
|
'directory mask' => { type => '', }, |
|
|
'directory mode' => { type => '', }, |
|
|
'directory security mask' => { type => '', }, |
|
|
'dont descend' => { type => '', }, |
|
|
'dos filemode' => { type => '', }, |
|
|
'dos filetime resolution' => { type => '', }, |
|
|
'dos filetimes' => { type => '', }, |
|
|
'exec' => { type => '', }, |
|
|
'fake directory create times' => { type => '', }, |
|
|
'fake oplocks' => { type => '', }, |
|
|
'follow symlinks' => { type => '', }, |
|
|
'force create mode' => { type => '', }, |
|
|
'force directory mode' => { type => '', }, |
|
|
'force directory security mode' => { type => '', }, |
|
|
'force group' => { type => '', }, |
|
|
'force security mode' => { type => '', }, |
|
|
'force unknown acl user' => { type => '', }, |
|
|
'force user' => { type => '', }, |
|
|
'fstype' => { type => '', }, |
|
|
'group' => { type => '', }, |
|
|
'guest account' => { type => '', }, |
|
|
'guest ok' => { type => '', }, |
|
|
'guest only' => { type => '', }, |
|
|
'hide dot files' => { type => '', }, |
|
|
'hide files' => { type => '', }, |
|
|
'hosts allow' => { type => '', }, |
|
|
'hosts deny' => { type => '', }, |
|
|
'include' => { type => '', }, |
|
|
'inherit acls' => { type => '', }, |
|
|
'inherit permissions' => { type => '', }, |
|
|
'invalid users' => { type => '', }, |
|
|
'level2 oplocks' => { type => '', }, |
|
|
'locking' => { type => '', }, |
|
|
'lppause command' => { type => '', }, |
|
|
'lpq command' => { type => '', }, |
|
|
'lpresume command' => { type => '', }, |
|
|
'lprm command' => { type => '', }, |
|
|
'magic output' => { type => '', }, |
|
|
'magic script' => { type => '', }, |
|
|
'mangle case' => { type => '', }, |
|
|
'mangled map' => { type => '', }, |
|
|
'mangled names' => { type => '', }, |
|
|
'mangling char' => { type => '', }, |
|
|
'map archive' => { type => '', }, |
|
|
'map hidden' => { type => '', }, |
|
|
'map system' => { type => '', }, |
|
|
'max connections' => { type => '', }, |
|
|
'max print jobs' => { type => '', }, |
|
|
'min print space' => { type => '', }, |
|
|
'msdfs root' => { type => '', }, |
|
|
'nt acl support' => { type => '', }, |
|
|
'only guest' => { type => '', }, |
|
|
'only user' => { type => '', }, |
|
|
'oplock contention limit' => { type => '', }, |
|
|
'oplocks' => { type => '', }, |
|
|
'path' => { type => '', }, |
|
|
'posix locking' => { type => '', }, |
|
|
'postexec' => { type => '', }, |
|
|
'postscript' => { type => '', }, |
|
|
'preexec' => { type => '', }, |
|
|
'preexec close' => { type => '', }, |
|
|
'preserve case' => { type => '', }, |
|
|
'print command' => { type => '', }, |
|
|
'print ok' => { type => '', }, |
|
|
'printable' => { type => '', }, |
|
|
'printer' => { type => '', }, |
|
|
'printer admin' => { type => '', }, |
|
|
'printer driver' => { type => '', }, |
|
|
'printer driver location' => { type => '', }, |
|
|
'printer name' => { type => '', }, |
|
|
'printing' => { type => '', }, |
|
|
'profile acls' => { type => '', }, |
|
|
'public' => { type => '', }, |
|
|
'queuepause command' => { type => '', }, |
|
|
'queueresume command' => { type => '', }, |
|
|
'read list' => { type => '', }, |
|
|
'read only' => { type => '', }, |
|
|
'root postexec' => { type => '', }, |
|
|
'root preexec' => { type => '', }, |
|
|
'root preexec close' => { type => '', }, |
|
|
'security mask' => { type => '', }, |
|
|
'set directory' => { type => '', }, |
|
|
'share modes' => { type => '', }, |
|
|
'short preserve case' => { type => '', }, |
|
|
'status' => { type => '', }, |
|
|
'strict allocate' => { type => '', }, |
|
|
'strict locking' => { type => '', }, |
|
|
'strict sync' => { type => '', }, |
|
|
'sync always' => { type => '', }, |
|
|
'use client driver' => { type => '', }, |
|
|
'use sendfile' => { type => '', }, |
|
|
'user' => { type => '', }, |
|
|
'username' => { type => '', }, |
|
|
'users' => { type => '', }, |
|
|
'valid users' => { type => '', }, |
|
|
'veto files' => { type => '', }, |
|
|
'veto oplock files' => { type => '', }, |
|
|
'vfs object' => { type => '', }, |
|
|
'vfs options' => { type => '', }, |
|
|
'volume' => { type => '', }, |
|
|
'wide links' => { type => '', }, |
|
|
'writable' => { type => '', }, |
|
|
'write cache size' => { type => '', }, |
|
|
'write list' => { type => '', }, |
|
|
'write ok' => { type => '', }, |
|
|
'writeable' => { type => '', }, |
|
|
}; |
|
|
|
|
|
$data_mapping{samba} = { |
|
|
BOOLEAN => sub { |
|
|
my ($value) = @_; |
|
|
$value eq 'true' and return 1; |
|
|
$value eq 'false' and return 0; |
|
|
$value ? 'true' : 'false'; |
|
|
}, |
|
|
}; |
|
|
|
|
109 |
1 |
1 |