Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 157653 Details for
Bug 245407
Add config attributes to cn=config to support Console
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
cvs diffs (ldapserver)
config.diffs (text/plain), 6.45 KB, created by
Noriko Hosoi
on 2007-06-22 21:32:03 UTC
(
hide
)
Description:
cvs diffs (ldapserver)
Filename:
MIME Type:
Creator:
Noriko Hosoi
Created:
2007-06-22 21:32:03 UTC
Size:
6.45 KB
patch
obsolete
>Index: slap.h >=================================================================== >RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/slap.h,v >retrieving revision 1.21 >diff -t -w -U4 -r1.21 slap.h >--- slap.h 27 Feb 2007 02:57:30 -0000 1.21 >+++ slap.h 22 Jun 2007 19:24:16 -0000 >@@ -1727,8 +1727,10 @@ > #define CONFIG_SCHEMADIR_ATTRIBUTE "nsslapd-schemadir" > #define CONFIG_LOCKDIR_ATTRIBUTE "nsslapd-lockdir" > #define CONFIG_TMPDIR_ATTRIBUTE "nsslapd-tmpdir" > #define CONFIG_CERTDIR_ATTRIBUTE "nsslapd-certdir" >+#define CONFIG_LDIFDIR_ATTRIBUTE "nsslapd-ldifdir" >+#define CONFIG_BAKDIR_ATTRIBUTE "nsslapd-bakdir" > #define CONFIG_SASLPATH_ATTRIBUTE "nsslapd-saslpath" > #define CONFIG_SSLCLIENTAUTH_ATTRIBUTE "nsslapd-SSLclientAuth" > #define CONFIG_SSL_CHECK_HOSTNAME_ATTRIBUTE "nsslapd-ssl-check-hostname" > #define CONFIG_HASH_FILTERS_ATTRIBUTE "nsslapd-hash-filters" >@@ -1905,8 +1907,10 @@ > char *schemadir; /* full path name of directory containing schema files */ > char *lockdir; /* full path name of directory containing lock files */ > char *tmpdir; /* full path name of directory containing tmp files */ > char *certdir; /* full path name of directory containing cert files */ >+ char *ldifdir; /* full path name of directory containing ldif files */ >+ char *bakdir; /* full path name of directory containing bakup files */ > char *saslpath; /* full path name of directory containing sasl plugins */ > int attrname_exceptions; /* if true, allow questionable attribute names */ > int rewrite_rfc1274; /* return attrs for both v2 and v3 names */ > char *schemareplace; /* see CONFIG_SCHEMAREPLACE_* #defines below */ >Index: proto-slap.h >=================================================================== >RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/proto-slap.h,v >retrieving revision 1.26 >diff -t -w -U4 -r1.26 proto-slap.h >--- proto-slap.h 27 Feb 2007 02:57:30 -0000 1.26 >+++ proto-slap.h 22 Jun 2007 19:24:16 -0000 >@@ -319,8 +319,10 @@ > int config_set_schemadir( const char *attrname, char *value, char *errorbuf, int apply ); > int config_set_lockdir( const char *attrname, char *value, char *errorbuf, int apply ); > int config_set_tmpdir( const char *attrname, char *value, char *errorbuf, int apply ); > int config_set_certdir( const char *attrname, char *value, char *errorbuf, int apply ); >+int config_set_ldifdir( const char *attrname, char *value, char *errorbuf, int apply ); >+int config_set_bakdir( const char *attrname, char *value, char *errorbuf, int apply ); > int config_set_saslpath( const char *attrname, char *value, char *errorbuf, int apply ); > int config_set_attrname_exceptions( const char *attrname, char *value, char *errorbuf, int apply ); > int config_set_hash_filters( const char *attrname, char *value, char *errorbuf, int apply ); > int config_set_rewrite_rfc1274( const char *attrname, char *value, char *errorbuf, int apply ); >@@ -429,8 +431,10 @@ > char *config_get_schemadir(); > char *config_get_lockdir(); > char *config_get_tmpdir(); > char *config_get_certdir(); >+char *config_get_ldifdir(); >+char *config_get_bakdir(); > char *config_get_saslpath(); > char **config_get_errorlog_list(); > char **config_get_accesslog_list(); > char **config_get_auditlog_list(); >Index: libglobs.c >=================================================================== >RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/libglobs.c,v >retrieving revision 1.16 >diff -t -w -U4 -r1.16 libglobs.c >--- libglobs.c 2 Mar 2007 22:38:07 -0000 1.16 >+++ libglobs.c 22 Jun 2007 19:24:16 -0000 >@@ -557,8 +557,16 @@ > /* parameterizing cert dir */ > {CONFIG_CERTDIR_ATTRIBUTE, config_set_certdir, > NULL, 0, > (void**)&global_slapdFrontendConfig.certdir, CONFIG_STRING, config_get_certdir}, >+ /* parameterizing ldif dir */ >+ {CONFIG_LDIFDIR_ATTRIBUTE, config_set_ldifdir, >+ NULL, 0, >+ (void**)&global_slapdFrontendConfig.ldifdir, CONFIG_STRING, config_get_ldifdir}, >+ /* parameterizing bak dir */ >+ {CONFIG_BAKDIR_ATTRIBUTE, config_set_bakdir, >+ NULL, 0, >+ (void**)&global_slapdFrontendConfig.bakdir, CONFIG_STRING, config_get_bakdir}, > /* parameterizing sasl plugin path */ > {CONFIG_SASLPATH_ATTRIBUTE, config_set_saslpath, > NULL, 0, > (void**)&global_slapdFrontendConfig.saslpath, CONFIG_STRING, config_get_saslpath}, >@@ -4598,8 +4606,79 @@ > return retVal; > } > > char * >+config_get_ldifdir() >+{ >+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig(); >+ char *retVal; >+ >+ CFG_LOCK_READ(slapdFrontendConfig); >+ retVal = config_copy_strval(slapdFrontendConfig->ldifdir); >+ CFG_UNLOCK_READ(slapdFrontendConfig); >+ >+ return retVal; >+} >+ >+int >+config_set_ldifdir(const char *attrname, char *value, char *errorbuf, int apply) >+{ >+ int retVal = LDAP_SUCCESS; >+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig(); >+ >+ if ( config_value_is_null( attrname, value, errorbuf, 0 )) { >+ return LDAP_OPERATIONS_ERROR; >+ } >+ >+ if (!apply) { >+ return retVal; >+ } >+ >+ CFG_LOCK_WRITE(slapdFrontendConfig); >+ slapi_ch_free((void **)&slapdFrontendConfig->ldifdir); >+ >+ slapdFrontendConfig->ldifdir = slapi_ch_strdup(value); >+ >+ CFG_UNLOCK_WRITE(slapdFrontendConfig); >+ return retVal; >+} >+ >+char * >+config_get_bakdir() >+{ >+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig(); >+ char *retVal; >+ >+ CFG_LOCK_READ(slapdFrontendConfig); >+ retVal = config_copy_strval(slapdFrontendConfig->bakdir); >+ CFG_UNLOCK_READ(slapdFrontendConfig); >+ >+ return retVal; >+} >+ >+int >+config_set_bakdir(const char *attrname, char *value, char *errorbuf, int apply) >+{ >+ int retVal = LDAP_SUCCESS; >+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig(); >+ >+ if ( config_value_is_null( attrname, value, errorbuf, 0 )) { >+ return LDAP_OPERATIONS_ERROR; >+ } >+ >+ if (!apply) { >+ return retVal; >+ } >+ >+ CFG_LOCK_WRITE(slapdFrontendConfig); >+ slapi_ch_free((void **)&slapdFrontendConfig->bakdir); >+ >+ slapdFrontendConfig->bakdir = slapi_ch_strdup(value); >+ >+ CFG_UNLOCK_WRITE(slapdFrontendConfig); >+ return retVal; >+} >+char * > config_get_saslpath() > { > slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig(); > char *retVal;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245407
: 157653 |
157660
|
157668