Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Nadezhda Ivanova
OpenLDAP
Commits
96092b4d
Commit
96092b4d
authored
25 years ago
by
Juan Gomez
Browse files
Options
Downloads
Patches
Plain Diff
Access x added!
parent
336e6e60
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/startup_nis_ldap_server.sh
+44
-0
44 additions, 0 deletions
tests/scripts/startup_nis_ldap_server.sh
with
44 additions
and
0 deletions
tests/scripts/startup_nis_ldap_server.sh
0 → 100755
+
44
−
0
View file @
96092b4d
#!/bin/sh
if
[
$#
-eq
0
]
;
then
SRCDIR
=
"."
else
SRCDIR
=
$1
;
shift
fi
if
[
$#
-eq
1
]
;
then
BDB2
=
$1
;
shift
fi
.
$SRCDIR
/scripts/defines.sh
$SRCDIR
$BDB2
# Sample NIS database in LDIF format
NIS_LDIF
=
$SRCDIR
/../schema/nis_sample.ldif
# Sample configuration file for your LDAP server
if
test
"
$BACKEND
"
=
"bdb2"
;
then
NIS_CONF
=
$DATADIR
/slapd-bdb2-nis-master.conf
else
NIS_CONF
=
$DATADIR
/slapd-nis-master.conf
fi
echo
"Cleaning up in
$DBDIR
..."
rm
-f
$DBDIR
/[!C]
*
echo
"Running ldif2ldbm to build slapd database..."
$LDIF2LDBM
-f
$NIS_CONF
-i
$NIS_LDIF
-e
../servers/slapd/tools
RC
=
$?
if
[
$RC
!=
0
]
;
then
echo
"ldif2ldbm failed!"
exit
$RC
fi
echo
"Starting slapd on TCP/IP port
$PORT
..."
$SLAPD
-f
$NIS_CONF
-p
$PORT
-d
$LVL
$TIMING
>
$MASTERLOG
2>&1 &
PID
=
$!
echo
">>>>> LDAP server with NIS schema is up! PID=
$PID
"
exit
0
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