Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
178dc1b7
Commit
178dc1b7
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Treat all phone number syntaxes as numericString
parent
d1fd2436
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/schema_init.c
+9
-5
9 additions, 5 deletions
servers/slapd/schema_init.c
with
9 additions
and
5 deletions
servers/slapd/schema_init.c
+
9
−
5
View file @
178dc1b7
...
...
@@ -905,7 +905,7 @@ int caseIgnoreIA5Filter(
}
static
int
N
umericStringNormalize
(
n
umericStringNormalize
(
Syntax
*
syntax
,
struct
berval
*
val
,
struct
berval
**
normalized
)
...
...
@@ -1213,6 +1213,10 @@ struct syntax_defs_rec {
#define X_BINARY "X-BINARY-TRANSFER-REQUIRED 'TRUE' "
#define X_NOT_H_R "X-NOT-HUMAN-READABLE 'TRUE' "
#define faxNumberNormalize numericStringNormalize
#define phoneNumberNormalize numericStringNormalize
#define telexNumberNormalize numericStringNormalize
struct
syntax_defs_rec
syntax_defs
[]
=
{
{
"( 1.3.6.1.4.1.1466.115.121.1.1 DESC 'ACI Item' "
X_BINARY
X_NOT_H_R
")"
,
SLAP_SYNTAX_BINARY
|
SLAP_SYNTAX_BER
,
NULL
,
NULL
,
NULL
},
...
...
@@ -1258,7 +1262,7 @@ struct syntax_defs_rec syntax_defs[] = {
{
"( 1.3.6.1.4.1.1466.115.121.1.21 DESC 'Enhanced Guide' )"
,
0
,
NULL
,
NULL
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.22 DESC 'Facsimile Telephone Number' )"
,
0
,
blob
Validate
,
NULL
,
NULL
},
0
,
IA5String
Validate
,
faxNumberNormalize
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.23 DESC 'Fax' "
X_NOT_H_R
")"
,
SLAP_SYNTAX_BLOB
,
NULL
,
NULL
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.24 DESC 'Generalized Time' )"
,
...
...
@@ -1286,7 +1290,7 @@ struct syntax_defs_rec syntax_defs[] = {
{
"( 1.3.6.1.4.1.1466.115.121.1.35 DESC 'Name Form Description' )"
,
0
,
NULL
,
NULL
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.36 DESC 'Numeric String' )"
,
0
,
IA5StringValidate
,
N
umericStringNormalize
,
NULL
},
0
,
IA5StringValidate
,
n
umericStringNormalize
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.37 DESC 'Object Class Description' )"
,
0
,
NULL
,
NULL
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.38 DESC 'OID' )"
,
...
...
@@ -1307,11 +1311,11 @@ struct syntax_defs_rec syntax_defs[] = {
X_BINARY
X_NOT_H_R
")"
,
SLAP_SYNTAX_BINARY
|
SLAP_SYNTAX_BER
,
berValidate
,
NULL
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.50 DESC 'Telephone Number' )"
,
0
,
IA5StringValidate
,
Numer
icString
Normalize
,
NULL
},
0
,
IA5StringValidate
,
phone
Num
b
erNormalize
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.51 DESC 'Teletex Terminal Identifier' )"
,
0
,
NULL
,
NULL
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.52 DESC 'Telex Number' )"
,
0
,
NULL
,
NULL
,
NULL
},
0
,
IA5StringValidate
,
telexNumberNormalize
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.53 DESC 'UTC Time' )"
,
0
,
utcTimeValidate
,
utcTimeNormalize
,
NULL
},
{
"( 1.3.6.1.4.1.1466.115.121.1.54 DESC 'LDAP Syntax Description' )"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment