This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// suggested shell cmd line to run this: | |
// | |
// mongo --shell example2.js | |
// | |
// Note: the { out : … } parameter is for mongodb 1.8+ | |
db.things.insert( { _id : 1, tags : ['dog', 'cat'] } ); | |
db.things.insert( { _id : 2, tags : ['cat'] } ); | |
db.things.insert( { _id : 3, tags : ['mouse', 'cat', 'dog'] } ); | |
db.things.insert( { _id : 4, tags : [] } ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<datastreams> | |
<settings-profile ns="{00000000-0000-0000-0000-000000000001}"> | |
<method ns="http://jabber"> | |
<org/protocol/bytestreams]> | |
<enable-direct-connections type="1">false</enable-direct-connections> | |
</org/protocol/bytestreams]> | |
</method> | |
</settings-profile> | |
</datastreams> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<options> | |
<accounts> | |
<account ns="{00000000-0000-0000-0000-000000000001}"> | |
<auto-connect type="1">true</auto-connect> | |
<auto-reconnect/> | |
<ignore-autojoin type="1">true</ignore-autojoin> | |
<name type="10">%USERNAME%</name> | |
<streamJid type="10">%USERNAME%@jabber.local</streamJid> | |
<resource type="10">%COMPUTERNAME%</resource> | |
<connection ns="DefaultConnection"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<options> | |
<accounts> | |
<account ns="{00000000-0000-0000-0000-000000000001}"> | |
<auto-connect/> | |
<connection ns="DefaultConnection"> | |
<cert-verify-mode type="2">0</cert-verify-mode> | |
<host type="10">jabber.domain.ru</host> | |
<proxy/> | |
<port/> | |
<use-legacy-ssl/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>>> userid1@jabber.domain.ru/TEST-WIN 15:04:30 +5516 >>>> | |
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="jabber.domain.ru"/> | |
<<<< userid1@jabber.domain.ru/TEST-WIN 15:04:30 +16 <<<< | |
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" from="jabber.domain.ru" id="hddz8fjch" to="userid1@jabber.domain.ru/TEST-WIN" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace"/> | |
<<<< userid1@jabber.domain.ru/TEST-WIN 15:04:30 +47 <<<< | |
<stream:features to="userid1@jabber.domain.ru/TEST-WIN"> | |
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> | |
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>>> userid1@jabber.domain.ru/TEST-WIN 15:05:46 +0 >>>> | |
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="ru_RU" to="jabber.domain.ru"/> | |
<<<< userid1@jabber.domain.ru/TEST-WIN 15:05:46 +16 <<<< | |
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" from="jabber.domain.ru" id="7ob4fk065e" to="userid1@jabber.domain.ru/TEST-WIN" xml:lang="und" xmlns:xml="http://www.w3.org/XML/1998/namespace"/> | |
<<<< userid1@jabber.domain.ru/TEST-WIN 15:05:46 +62 <<<< | |
<stream:features xmlns:stream="http://etherx.jabber.org/streams" to="userid1@jabber.domain.ru/TEST-WIN"> | |
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> | |
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[node@centos7.5 ~]$ cat /etc/centos-release | |
CentOS Linux release 7.5.1804 (Core) | |
[node@centos7.5 Release]$ ldd kerberos.node | |
linux-vdso.so.1 => (0x00007ffdff897000) | |
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f9d750ab000) | |
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f9d74e5e000) | |
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f9d74b57000) | |
libm.so.6 => /lib64/libm.so.6 (0x00007f9d74855000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[node@centos7.6 ~]$ cat /etc/centos-release | |
CentOS Linux release 7.6.1810 (Core) | |
[node@centos7.6 Release]$ ldd kerberos.node | |
linux-vdso.so.1 => (0x00007ffcaeff1000) | |
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f9d6a118000) | |
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f9d69ecb000) | |
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f9d69bc4000) | |
libm.so.6 => /lib64/libm.so.6 (0x00007f9d698c2000) | |
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f9d696ac000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[node@centos7.5 lkrbAuth]$ export KRB5_KTNAME=/srv/keytabs/krbAuth.keytab | |
[node@centos7.5 krbAuth]$ klist -k /srv/keytabs/krbAuth.keytab | |
Keytab name: FILE:/srv/keytabs/krbAuth.keytab | |
KVNO Principal | |
---- -------------------------------------------------------------------------- | |
32 HTTP/centos.domain.org@DOMAIN.ORG | |
[node@centos7.5 krbAuth]$ node krb_example.js | |
-----request----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[node@centos7.6 krbAuth]$ export KRB5_KTNAME=/srv/keytabs/krbAuth.keytab | |
[node@centos7.6 krbAuth]$ klist -k /srv/keytabs/krbAuth.keytab | |
Keytab name: FILE:/srv/keytabs/krbAuth.keytab | |
KVNO Principal | |
---- -------------------------------------------------------------------------- | |
32 HTTP/centos.domain.org@DOMAIN.ORG | |
[node@centos7.6 krbAuth]$ node krb_example.js | |
-----request----- |
OlderNewer