fix(docs): better file names
This commit is contained in:
parent
5e8408ccac
commit
589749883c
16
README.md
16
README.md
@ -94,8 +94,8 @@ interface IGoogleLDAPAuthOptions {
|
||||
base: string;
|
||||
/** tls options
|
||||
* e.g. {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||
} */
|
||||
tlsOptions: tls.TlsOptions;
|
||||
}
|
||||
@ -110,8 +110,8 @@ c = {
|
||||
authenticationOptions: {
|
||||
base: 'dc=hokify,dc=com',
|
||||
tlsOptions: {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -132,8 +132,8 @@ interface ILDAPAuthOptions {
|
||||
base: string;
|
||||
/** tls options
|
||||
* e.g. {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||
servername: 'ldap.google.com'
|
||||
} */
|
||||
tlsOptions?: any;
|
||||
@ -153,8 +153,8 @@ c = {
|
||||
url: 'ldaps://ldap.google.com',
|
||||
base: 'dc=hokify,dc=com',
|
||||
tlsOptions: {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||
servername: 'ldap.google.com'
|
||||
}
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ describe('test google ldap auth', function() {
|
||||
const auth = new GoogleLDAPAuth({
|
||||
base: 'dc=hokify,dc=com',
|
||||
tlsOptions: {
|
||||
key: fs.readFileSync('./ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('./ldap.gsuite.hokify.com.40567.crt')
|
||||
key: fs.readFileSync('./ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('./ldap.gsuite.crt')
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -11,8 +11,8 @@ describe('test ldap auth', function() {
|
||||
base: 'dc=hokify,dc=com',
|
||||
tlsOptions: {
|
||||
servername: 'ldap.google.com',
|
||||
key: fs.readFileSync('./ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('./ldap.gsuite.hokify.com.40567.crt')
|
||||
key: fs.readFileSync('./ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('./ldap.gsuite.crt')
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -24,8 +24,9 @@ module.exports = {
|
||||
authenticationOptions: {
|
||||
base: 'dc=hokify,dc=com',
|
||||
tlsOptions: {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
||||
// get your keys from http://admin.google.com/ -> Apps -> LDAP -> Client
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,8 +36,8 @@ module.exports = {
|
||||
url: 'ldaps://ldap.google.com',
|
||||
base: 'dc=hokify,dc=com',
|
||||
tlsOptions: {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||
servername: 'ldap.google.com'
|
||||
}
|
||||
}
|
||||
|
@ -15,8 +15,8 @@ interface IGoogleLDAPAuthOptions {
|
||||
base: string;
|
||||
/** tls options
|
||||
* e.g. {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||
} */
|
||||
tlsOptions: tls.TlsOptions;
|
||||
}
|
||||
|
@ -11,8 +11,8 @@ interface ILDAPAuthOptions {
|
||||
base: string;
|
||||
/** tls options
|
||||
* e.g. {
|
||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
||||
key: fs.readFileSync('ldap.gsuite.key'),
|
||||
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||
servername: 'ldap.google.com'
|
||||
} */
|
||||
tlsOptions?: any;
|
||||
|
Loading…
Reference in New Issue
Block a user