<samba:parameter name="dos charset"
type="string"
context="G"
- constant="1"
handler="handle_dos_charset"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<samba:parameter name="netbios name"
context="G"
type="ustring"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="netbios scope"
context="G"
type="ustring"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This sets the NetBIOS scope that Samba will
<samba:parameter name="realm"
context="G"
type="string"
- constant="1"
handler="handle_realm"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<samba:parameter name="share backend"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="unix charset"
context="G"
type="string"
- constant="1"
handler="handle_charset"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<samba:parameter name="workgroup"
context="G"
type="ustring"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This controls what workgroup your server will
<samba:parameter name="mangling method"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para> controls the algorithm used for the generating
<samba:parameter name="ldap admin dn"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
context="G"
type="string"
function="_ldap_group_suffix"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the suffix that is
context="G"
type="string"
function="_ldap_idmap_suffix"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
context="G"
type="string"
function="_ldap_machine_suffix"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<samba:parameter name="ldap suffix"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>Specifies the base for all ldap suffixes and for storing the sambaDomain object.</para>
context="G"
type="string"
function="_ldap_user_suffix"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="logon drive"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="logon home"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="logon path"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="logon script"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="afs username map"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>If you are using the fake kaserver AFS feature, you might
<samba:parameter name="cache directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>Usually, most of the TDB files are stored in the <parameter
<samba:parameter name="ctdbd socket"
context="G"
type="string"
- constant="1"
function="_ctdbd_socket"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<samba:parameter name="fstype"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="lock directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<synonym>lock dir</synonym>
<description>
<samba:parameter name="nbt client socket address"
context="G"
type="string"
- constant="1"
deprecated="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<synonym>socket address</synonym>
<samba:parameter name="ncalrpc dir"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This directory will hold a series of named pipes to allow RPC over inter-process communication.</para>
<samba:parameter name="pid directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="state directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>Usually, most of the TDB files are stored in the
<samba:parameter name="usershare template share"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>User defined shares only have limited possible parameters
<samba:parameter name="utmp directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter is only available if Samba has
<samba:parameter name="wtmp directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="lppause command"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the command to be
<samba:parameter name="lpq command"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the command to be
<samba:parameter name="lpresume command"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the command to be
<samba:parameter name="lprm command"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the command to be
<samba:parameter name="printcap name"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<synonym>printcap</synonym>
<description>
<samba:parameter name="print command"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>After a print job has finished spooling to
<samba:parameter name="printjob username"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies which user information will be
<samba:parameter name="queuepause command"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the command to be
<samba:parameter name="queueresume command"
context="S"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the command to be
context="G"
type="string"
handler="handle_rpc_server_dynamic_port_range"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="binddns dir"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<synonym>bind dns directory</synonym>
<description>
<samba:parameter name="dedicated keytab file"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="guest account"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This is a username which will be used for access
<samba:parameter name="ntp signd socket directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This setting controls the location of the socket that
<samba:parameter name="passdb backend"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<samba:parameter name="password server"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>By specifying the name of a domain controller with this option,
<samba:parameter name="private dir"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<synonym>private directory</synonym>
<description>
<samba:parameter name="smb passwd file"
type="string"
context="G"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This option sets the path to the encrypted smbpasswd file. By
type="string"
context="G"
function="_tls_cafile"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This option can be set to a file (PEM format)
type="string"
context="G"
function="_tls_certfile"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This option can be set to a file (PEM format)
type="string"
context="G"
function="_tls_crlfile"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This option can be set to a file containing a certificate
type="string"
context="G"
function="_tls_dhpfile"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This option can be set to a file with Diffie-Hellman parameters
type="string"
context="G"
function="_tls_keyfile"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This option can be set to a file (PEM format)
<samba:parameter name="tls priority"
type="string"
context="G"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This option can be set to a string describing the TLS protocols
<samba:parameter name="socket options"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
<samba:parameter name="template homedir"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>When filling out the user information for a Windows NT
<samba:parameter name="template shell"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>When filling out the user information for a Windows NT
<samba:parameter name="winbindd socket directory"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This setting controls the location of the winbind daemon's socket.</para>
<samba:parameter name="winbind separator"
context="G"
type="string"
- constant="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter allows an admin to define the character
if temp is None:
raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
output_string += temp
- if parameter['constant']:
- output_string += "_CONST"
- if parameter['substitution']:
- output_string += "_SUBSTITUTED"
+ if parameter['type'] == "string" or parameter['type'] == "ustring":
+ if parameter['substitution']:
+ output_string += "_SUBSTITUTED"
+ else:
+ output_string += "_CONST"
if parameter['parm']:
output_string += "_PARM"
temp = param_type_dict.get(parameter['type'])
continue
output_string = ""
- if parameter['constant']:
- output_string += 'const '
param_type = mapping.get(parameter['type'])
if param_type is None:
raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
else:
param = "int"
- if parameter['type'] == 'string' and parameter['substitution']:
- if parameter['context'] == 'G':
- output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub);\n'
- elif parameter['context'] == 'S':
- output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub, %s);\n' % param
- else:
- raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
- elif parameter['type'] == 'string' and not parameter['constant']:
- if parameter['context'] == 'G':
- output_string += '(TALLOC_CTX *ctx);\n'
- elif parameter['context'] == 'S':
- output_string += '(TALLOC_CTX *ctx, %s);\n' % param
+ if parameter['type'] == 'string' or parameter['type'] == 'ustring':
+ if parameter['substitution']:
+ if parameter['context'] == 'G':
+ output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub);\n'
+ elif parameter['context'] == 'S':
+ output_string += '(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub, %s);\n' % param
+ else:
+ raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
else:
- raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
+ if parameter['context'] == 'G':
+ output_string = 'const ' + output_string + '(void);\n'
+ elif parameter['context'] == 'S':
+ output_string = 'const ' + output_string + '(%s);\n' % param
+ else:
+ raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
else:
if parameter['context'] == 'G':
output_string += '(void);\n'
continue
output_string = ""
- if parameter['constant']:
- output_string += 'const '
param_type = mapping.get(parameter['type'])
if param_type is None:
raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
output_string += "lpcfg_%s" % parameter['function']
- if parameter['type'] == 'string' and parameter['substitution']:
- if parameter['context'] == 'G':
- output_string += '(struct loadparm_context *, const struct loadparm_substitution *lp_sub, TALLOC_CTX *ctx);\n'
- elif parameter['context'] == 'S':
- output_string += '(struct loadparm_service *, struct loadparm_service *, TALLOC_CTX *ctx);\n'
+ if parameter['type'] == 'string' or parameter['type'] == 'ustring':
+ if parameter['substitution']:
+ if parameter['context'] == 'G':
+ output_string += '(struct loadparm_context *, const struct loadparm_substitution *lp_sub, TALLOC_CTX *ctx);\n'
+ elif parameter['context'] == 'S':
+ output_string += '(struct loadparm_service *, struct loadparm_service *, TALLOC_CTX *ctx);\n'
+ else:
+ raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
else:
- raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
- elif parameter['type'] == 'string' and not parameter['constant']:
- if parameter['context'] == 'G':
- output_string += '(struct loadparm_context *, TALLOC_CTX *ctx);\n'
- elif parameter['context'] == 'S':
- output_string += '(struct loadparm_service *, struct loadparm_service *, TALLOC_CTX *ctx);\n'
- else:
- raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
+ if parameter['context'] == 'G':
+ output_string = 'const ' + output_string + '(struct loadparm_context *);\n'
+ elif parameter['context'] == 'S':
+ output_string = 'const ' + output_string + '(struct loadparm_service *, struct loadparm_service *);\n'
+ else:
+ raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
else:
if parameter['context'] == 'G':
output_string += '(struct loadparm_context *);\n'