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
39bc8e7e
Commit
39bc8e7e
authored
21 years ago
by
Ralf Haferkamp
Browse files
Options
Downloads
Patches
Plain Diff
honor superior Objectclasses
parent
5a5da65d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/ldapc++/src/LDAPObjClass.cpp
+11
-0
11 additions, 0 deletions
contrib/ldapc++/src/LDAPObjClass.cpp
contrib/ldapc++/src/LDAPObjClass.h
+7
-1
7 additions, 1 deletion
contrib/ldapc++/src/LDAPObjClass.h
with
18 additions
and
1 deletion
contrib/ldapc++/src/LDAPObjClass.cpp
+
11
−
0
View file @
39bc8e7e
...
...
@@ -16,6 +16,7 @@ LDAPObjClass::LDAPObjClass(){
names
=
StringList
();
must
=
StringList
();
may
=
StringList
();
sup
=
StringList
();
}
LDAPObjClass
::
LDAPObjClass
(
const
LDAPObjClass
&
oc
){
...
...
@@ -28,6 +29,7 @@ LDAPObjClass::LDAPObjClass (const LDAPObjClass &oc){
must
=
oc
.
must
;
may
=
oc
.
may
;
kind
=
oc
.
kind
;
sup
=
oc
.
sup
;
}
LDAPObjClass
::
LDAPObjClass
(
string
oc_item
)
{
...
...
@@ -47,6 +49,7 @@ LDAPObjClass::LDAPObjClass (string oc_item) {
this
->
setKind
(
o
->
oc_kind
);
this
->
setMust
(
o
->
oc_at_oids_must
);
this
->
setMay
(
o
->
oc_at_oids_may
);
this
->
setSup
(
o
->
oc_sup_oids
);
}
// else? -> error
}
...
...
@@ -71,6 +74,10 @@ void LDAPObjClass::setMay (char **oc_may) {
may
=
StringList
(
oc_may
);
}
void
LDAPObjClass
::
setSup
(
char
**
oc_sup
)
{
sup
=
StringList
(
oc_sup
);
}
void
LDAPObjClass
::
setDesc
(
char
*
oc_desc
)
{
desc
=
string
();
if
(
oc_desc
)
...
...
@@ -103,6 +110,10 @@ StringList LDAPObjClass::getMay () {
return
may
;
}
StringList
LDAPObjClass
::
getSup
()
{
return
sup
;
}
string
LDAPObjClass
::
getName
()
{
if
(
names
.
empty
())
...
...
This diff is collapsed.
Click to expand it.
contrib/ldapc++/src/LDAPObjClass.h
+
7
−
1
View file @
39bc8e7e
...
...
@@ -21,7 +21,7 @@ using namespace std;
*/
class
LDAPObjClass
{
private
:
StringList
names
,
must
,
may
;
StringList
names
,
must
,
may
,
sup
;
string
desc
,
oid
;
int
kind
;
...
...
@@ -81,6 +81,11 @@ class LDAPObjClass{
* Returns list of allowed (and not required) attributes
*/
StringList
getMay
();
/**
* Returns list of the OIDs of the superior ObjectClasses
*/
StringList
getSup
();
void
setNames
(
char
**
oc_names
);
void
setMay
(
char
**
oc_may
);
...
...
@@ -88,6 +93,7 @@ class LDAPObjClass{
void
setDesc
(
char
*
oc_desc
);
void
setOid
(
char
*
oc_oid
);
void
setKind
(
int
oc_kind
);
void
setSup
(
char
**
oc_sup
);
};
...
...
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