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
ff2f08ec
Commit
ff2f08ec
authored
Dec 01, 2020
by
simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: deps upgrades (including ts 4.1)
parent
03ec9f21
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15178 additions
and
6439 deletions
+15178
-6439
config.js
config.js
+3
-0
package-lock.json
package-lock.json
+15155
-6420
package.json
package.json
+17
-16
src/app.ts
src/app.ts
+1
-1
src/auth/GoogleLDAPAuth.ts
src/auth/GoogleLDAPAuth.ts
+1
-1
src/helpers.ts
src/helpers.ts
+1
-1
No files found.
config.js
View file @
ff2f08ec
...
...
@@ -17,6 +17,9 @@ module.exports = {
passphrase
:
'
whatever2020
'
,
},
],
// sessionTimeout: 3600,
// sesionIdContext: 'meiasdfkljasdft!',
// ticketKeys: Buffer.from('123456789012345678901234567890123456789012345678'),
},
// GoogleLDAPAuth (optimized for google auth)
...
...
package-lock.json
View file @
ff2f08ec
This diff is collapsed.
Click to expand it.
package.json
View file @
ff2f08ec
...
...
@@ -6,7 +6,7 @@
"node"
:
">13.10.1"
},
"bin"
:
{
"radius-server"
:
"
./
bin/radius-server"
"radius-server"
:
"bin/radius-server"
},
"files"
:
[
"bin"
,
...
...
@@ -30,30 +30,31 @@
"preferGlobal"
:
true
,
"main"
:
"dist/app.js"
,
"dependencies"
:
{
"
@hokify/node-ts-cache
"
:
"
^5.
2.0
"
,
"
debug
"
:
"
^4.
1
.1
"
,
"
@hokify/node-ts-cache
"
:
"
^5.
4.1
"
,
"
debug
"
:
"
^4.
3
.1
"
,
"
imap-simple
"
:
"
^5.0.0
"
,
"
ldapauth-fork
"
:
"
^
4.3.3
"
,
"
ldapjs
"
:
"
^2.
1.1
"
,
"
ldapauth-fork
"
:
"
^
5.0.1
"
,
"
ldapjs
"
:
"
^2.
2.2
"
,
"
native-duplexpair
"
:
"
^1.0.0
"
,
"
node-cache
"
:
"
^5.1.2
"
,
"
radius
"
:
"
~1.1.4
"
,
"
smtp-client
"
:
"
^0.3.
2
"
,
"
yargs
"
:
"
~1
5.4
.1
"
"
smtp-client
"
:
"
^0.3.
3
"
,
"
yargs
"
:
"
~1
6.1
.1
"
},
"license"
:
"GPLv3"
,
"devDependencies"
:
{
"
ts-node
"
:
"
^9.0.0
"
,
"
standard-version
"
:
"
^9.0.0
"
,
"
@hokify/eslint-config
"
:
"
^0.4.48
"
,
"
@types/chai
"
:
"
^4.2.12
"
,
"
@hokify/eslint-config
"
:
"
^1.0.5
"
,
"
@types/chai
"
:
"
^4.2.14
"
,
"
@types/ldapjs
"
:
"
^1.0.9
"
,
"
@types/mocha
"
:
"
^8.0.
3
"
,
"
@types/mocha
"
:
"
^8.0.
4
"
,
"
@types/radius
"
:
"
0.0.28
"
,
"
@types/yargs
"
:
"
^15.0.10
"
,
"
chai
"
:
"
^4.2.0
"
,
"
eslint
"
:
"
^7.8.1
"
,
"
mocha
"
:
"
^8.1.3
"
,
"
prettier
"
:
"
^2.1.1
"
,
"
typescript
"
:
"
^4.0.2
"
"
eslint
"
:
"
^7.14.0
"
,
"
mocha
"
:
"
^8.2.1
"
,
"
prettier
"
:
"
^2.2.1
"
,
"
standard-version
"
:
"
^9.0.0
"
,
"
ts-node
"
:
"
^9.0.0
"
,
"
typescript
"
:
"
^4.1.2
"
}
}
src/app.ts
View file @
ff2f08ec
...
...
@@ -18,7 +18,7 @@ if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') {
const
{
argv
}
=
yargs
.
usage
(
'
NODE RADIUS Server
\n
Usage: radius-server
'
)
.
example
(
'
radius-server --port 1812 -s radiussecret
'
)
.
example
(
'
radius-server --port 1812 -s radiussecret
'
,
'
start on port 1812 with a secret
'
)
.
default
({
port
:
config
.
port
||
1812
,
s
:
config
.
secret
||
'
testing123
'
,
...
...
src/auth/GoogleLDAPAuth.ts
View file @
ff2f08ec
...
...
@@ -62,7 +62,7 @@ export class GoogleLDAPAuth implements IAuthentication {
private
async
fetchDNs
()
{
const
dns
:
{
[
key
:
string
]:
string
}
=
{};
await
new
Promise
((
resolve
,
reject
)
=>
{
await
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
const
ldapDNClient
=
createClient
(
this
.
config
).
on
(
'
error
'
,
(
error
)
=>
{
console
.
error
(
'
Error in ldap
'
,
error
);
reject
(
error
);
...
...
src/helpers.ts
View file @
ff2f08ec
...
...
@@ -38,4 +38,4 @@ export const newDeferredPromise = (): IDeferredPromise => {
};
export
const
delay
=
(
timeout
:
number
)
=>
new
Promise
((
resolve
)
=>
setTimeout
(()
=>
resolve
(),
timeout
));
new
Promise
<
void
>
((
resolve
)
=>
setTimeout
(()
=>
resolve
(),
timeout
));
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