Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Node Radius Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Node Radius Server
Commits
58974988
Commit
58974988
authored
Feb 27, 2020
by
simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(docs): better file names
parent
5e8408cc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
20 deletions
+21
-20
README.md
README.md
+8
-8
__tests__/auth/google-ldap.test.ts
__tests__/auth/google-ldap.test.ts
+2
-2
__tests__/auth/ldap.test.ts
__tests__/auth/ldap.test.ts
+2
-2
config.js
config.js
+5
-4
src/auth/GoogleLDAPAuth.ts
src/auth/GoogleLDAPAuth.ts
+2
-2
src/auth/LDAPAuth.ts
src/auth/LDAPAuth.ts
+2
-2
No files found.
README.md
View file @
58974988
...
@@ -94,8 +94,8 @@ interface IGoogleLDAPAuthOptions {
...
@@ -94,8 +94,8 @@ interface IGoogleLDAPAuthOptions {
base
:
string
;
base
:
string
;
/** tls options
/** tls options
* e.g. {
* e.g. {
key: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
key'),
key: fs.readFileSync('ldap.gsuite.key'),
cert: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
crt')
cert: fs.readFileSync('ldap.gsuite.crt')
} */
} */
tlsOptions
:
tls
.
TlsOptions
;
tlsOptions
:
tls
.
TlsOptions
;
}
}
...
@@ -110,8 +110,8 @@ c = {
...
@@ -110,8 +110,8 @@ c = {
authenticationOptions
:
{
authenticationOptions
:
{
base
:
'
dc=hokify,dc=com
'
,
base
:
'
dc=hokify,dc=com
'
,
tlsOptions
:
{
tlsOptions
:
{
key
:
fs
.
readFileSync
(
'
ldap.gsuite.
hokify.com.40567.
key
'
),
key
:
fs
.
readFileSync
(
'
ldap.gsuite.key
'
),
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.
hokify.com.40567.
crt
'
)
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.crt
'
)
}
}
}
}
};
};
...
@@ -132,8 +132,8 @@ interface ILDAPAuthOptions {
...
@@ -132,8 +132,8 @@ interface ILDAPAuthOptions {
base
:
string
;
base
:
string
;
/** tls options
/** tls options
* e.g. {
* e.g. {
key: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
key'),
key: fs.readFileSync('ldap.gsuite.key'),
cert: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
crt'),
cert: fs.readFileSync('ldap.gsuite.crt'),
servername: 'ldap.google.com'
servername: 'ldap.google.com'
} */
} */
tlsOptions
?:
any
;
tlsOptions
?:
any
;
...
@@ -153,8 +153,8 @@ c = {
...
@@ -153,8 +153,8 @@ c = {
url
:
'
ldaps://ldap.google.com
'
,
url
:
'
ldaps://ldap.google.com
'
,
base
:
'
dc=hokify,dc=com
'
,
base
:
'
dc=hokify,dc=com
'
,
tlsOptions
:
{
tlsOptions
:
{
key
:
fs
.
readFileSync
(
'
ldap.gsuite.
hokify.com.40567.
key
'
),
key
:
fs
.
readFileSync
(
'
ldap.gsuite.key
'
),
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.
hokify.com.40567.
crt
'
),
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.crt
'
),
servername
:
'
ldap.google.com
'
servername
:
'
ldap.google.com
'
}
}
}
}
...
...
__tests__/auth/google-ldap.test.ts
View file @
58974988
...
@@ -9,8 +9,8 @@ describe('test google ldap auth', function() {
...
@@ -9,8 +9,8 @@ describe('test google ldap auth', function() {
const
auth
=
new
GoogleLDAPAuth
({
const
auth
=
new
GoogleLDAPAuth
({
base
:
'
dc=hokify,dc=com
'
,
base
:
'
dc=hokify,dc=com
'
,
tlsOptions
:
{
tlsOptions
:
{
key
:
fs
.
readFileSync
(
'
./ldap.gsuite.
hokify.com.40567.
key
'
),
key
:
fs
.
readFileSync
(
'
./ldap.gsuite.key
'
),
cert
:
fs
.
readFileSync
(
'
./ldap.gsuite.
hokify.com.40567.
crt
'
)
cert
:
fs
.
readFileSync
(
'
./ldap.gsuite.crt
'
)
}
}
});
});
...
...
__tests__/auth/ldap.test.ts
View file @
58974988
...
@@ -11,8 +11,8 @@ describe('test ldap auth', function() {
...
@@ -11,8 +11,8 @@ describe('test ldap auth', function() {
base
:
'
dc=hokify,dc=com
'
,
base
:
'
dc=hokify,dc=com
'
,
tlsOptions
:
{
tlsOptions
:
{
servername
:
'
ldap.google.com
'
,
servername
:
'
ldap.google.com
'
,
key
:
fs
.
readFileSync
(
'
./ldap.gsuite.
hokify.com.40567.
key
'
),
key
:
fs
.
readFileSync
(
'
./ldap.gsuite.key
'
),
cert
:
fs
.
readFileSync
(
'
./ldap.gsuite.
hokify.com.40567.
crt
'
)
cert
:
fs
.
readFileSync
(
'
./ldap.gsuite.crt
'
)
}
}
});
});
...
...
config.js
View file @
58974988
...
@@ -24,8 +24,9 @@ module.exports = {
...
@@ -24,8 +24,9 @@ module.exports = {
authenticationOptions
:
{
authenticationOptions
:
{
base
:
'
dc=hokify,dc=com
'
,
base
:
'
dc=hokify,dc=com
'
,
tlsOptions
:
{
tlsOptions
:
{
key
:
fs
.
readFileSync
(
'
ldap.gsuite.hokify.com.40567.key
'
),
// get your keys from http://admin.google.com/ -> Apps -> LDAP -> Client
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.hokify.com.40567.crt
'
)
key
:
fs
.
readFileSync
(
'
ldap.gsuite.key
'
),
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.crt
'
)
}
}
}
}
...
@@ -35,8 +36,8 @@ module.exports = {
...
@@ -35,8 +36,8 @@ module.exports = {
url: 'ldaps://ldap.google.com',
url: 'ldaps://ldap.google.com',
base: 'dc=hokify,dc=com',
base: 'dc=hokify,dc=com',
tlsOptions: {
tlsOptions: {
key: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
key'),
key: fs.readFileSync('ldap.gsuite.key'),
cert: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
crt'),
cert: fs.readFileSync('ldap.gsuite.crt'),
servername: 'ldap.google.com'
servername: 'ldap.google.com'
}
}
}
}
...
...
src/auth/GoogleLDAPAuth.ts
View file @
58974988
...
@@ -15,8 +15,8 @@ interface IGoogleLDAPAuthOptions {
...
@@ -15,8 +15,8 @@ interface IGoogleLDAPAuthOptions {
base
:
string
;
base
:
string
;
/** tls options
/** tls options
* e.g. {
* e.g. {
key: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
key'),
key: fs.readFileSync('ldap.gsuite.key'),
cert: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
crt')
cert: fs.readFileSync('ldap.gsuite.crt')
} */
} */
tlsOptions
:
tls
.
TlsOptions
;
tlsOptions
:
tls
.
TlsOptions
;
}
}
...
...
src/auth/LDAPAuth.ts
View file @
58974988
...
@@ -11,8 +11,8 @@ interface ILDAPAuthOptions {
...
@@ -11,8 +11,8 @@ interface ILDAPAuthOptions {
base
:
string
;
base
:
string
;
/** tls options
/** tls options
* e.g. {
* e.g. {
key: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
key'),
key: fs.readFileSync('ldap.gsuite.key'),
cert: fs.readFileSync('ldap.gsuite.
hokify.com.40567.
crt'),
cert: fs.readFileSync('ldap.gsuite.crt'),
servername: 'ldap.google.com'
servername: 'ldap.google.com'
} */
} */
tlsOptions
?:
any
;
tlsOptions
?:
any
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment