Skip to main content

Posts

Showing posts from June, 2016

How to generate AccessToken and AccessTokenSecret using OAuth (v1.0a) protocol?

In this post, I am going to briefly explain how to generate the access token and secret using   OAuth (v1.0a) protocol, here I am using  Xero payroll API  Request URLs for generating tokens. " https://www.hurl.it/ " is used to generate the above token. Steps: 1) Before start, we need to create a Xero account (https://www.xero.com/signup/) and valid application (https://api.xero.com/Application/). Once you create app, you can get the "Consumer Key" and "Consumer Secret". 2) The next step is to obtain an Unauthorized Request Token Go to the "https://www.hurl.it/" then select " Add Authentication " and click on " OAuth 1.0a". In the " Destination", choose GET HTTP method and add the " https://api.xero.com/oauth/RequestToken " in the place, then add the " Consumer Key" and " Consumer Secret" which is obtained from APP, after adding click the "Launch Request" to get  ...

How to configure LDAP in Ubuntu?

Introduction LDAP, or Lightweight Directory Access Protocol, is a protocol for managing related information from a centralized location through the use of a file and directory hierarchy. It functions in a similar way to a relational database in certain ways and can be used to organize and store any kind of information. LDAP is commonly used for centralized authentication. In this post, we will cover how to install and configure an OpenLDAP server and how to encrypt connections to OpenLDAP using STARTTLS to upgrade conventional connections to TLS on an Ubuntu 14.04 LTS. Prerequisites Setting the Hostname and FQDN We should set up our server so that it correctly resolves its hostname and fully qualified domain name (FQDN). This will be necessary in order for our certificates to be validated by clients. We will assume that our LDAP server will be hosted on a machine with the FQDN of vive.example.com To set the hostname, use the hostnamectl command with the set-hostname option.  $ sud...