fix(docs): better file names

This commit is contained in:
simon 2020-02-27 19:05:37 +01:00
parent 5e8408ccac
commit 589749883c
6 changed files with 21 additions and 20 deletions

View File

@ -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 = {
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 {
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 = {
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'
} }
} }

View File

@ -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')
} }
}); });

View File

@ -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')
} }
}); });

View File

@ -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 = {
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'
} }
} }

View File

@ -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;
} }

View File

@ -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;