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
ca5a7249
Commit
ca5a7249
authored
18 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Fix startup, use explicit serverIDs from the beginning
parent
d87d11eb
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
tests/scripts/test050-syncrepl-multimaster
+24
-7
24 additions, 7 deletions
tests/scripts/test050-syncrepl-multimaster
with
24 additions
and
7 deletions
tests/scripts/test050-syncrepl-multimaster
+
24
−
7
View file @
ca5a7249
...
...
@@ -43,8 +43,29 @@ mkdir -p $TESTDIR $PRODIR $CONDIR $DBPRO $DBCON $CFPRO $CFCON
#
echo
"Initializing server configurations..."
$SLAPADD
-F
$CFPRO
-n
0
-l
$DYNAMICCONF
$SLAPADD
-F
$CFCON
-n
0
-l
$DYNAMICCONF
$SLAPADD
-F
$CFCON
-n
0
<<
EOF
dn: cn=config
objectClass: olcGlobal
cn: config
olcServerID: 2
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcRootPW:< file:configpw
EOF
$SLAPADD
-F
$CFPRO
-n
0
<<
EOF
dn: cn=config
objectClass: olcGlobal
cn: config
olcServerID: 1
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcRootPW:< file:configpw
EOF
echo
"Starting producer slapd on TCP/IP port
$PORT1
..."
cd
$PRODIR
...
...
@@ -100,15 +121,11 @@ fi
# neither server will progress. The timeout will drop the syncrepl
# attempt and allow the modifies to complete.
#
# Setting the ServerIDs after the fact is bogus; the entries that
# were created before this point all have SID 0 in their CSNs. Still
# that should be harmless.
#
CONFIGPW
=
`
cat
$CONFIGPWF
`
$LDAPMODIFY
-D
cn
=
config
-H
$URI1
-y
$CONFIGPWF
<<
EOF
>>
$TESTOUT
2>&1
dn: cn=config
changetype: modify
add
: olcServerID
replace
: olcServerID
olcServerID: 1
$URI1
olcServerID: 2
$URI2
...
...
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