main-banner

vahidhsahemi.com

  • Brief Introduction to Zimbra Internal Architecture

    October 10, 2022
    Linux, Zimbra

    In some cases, you might want to recover your data from Zimbra, or you may be curious about how Zimbra manages users and emails behind the scenes. I dug into Zimbra’s nuts and bolts because we lost Zimbra’s local LDAP, which took more than 3 days to fix, so I wanted to share what I…

    Continue Reading →

  • SSH Access Without OS Shell in Gitlab

    SSH Access Without OS Shell in Gitlab

    August 28, 2022
    Linux

    Exposing SSH of your gitlab on the internet could be dangerous as attackers can get shell access into your server. So here we show you a way to enable SSH for Git without opening access to shell of the hosting OS. Step 1: Run another SSH instance just for gitlab Copy sshd config file and…

    Continue Reading →

  • Provisioning DNS Server Using PowerDNS

    March 25, 2021
    Linux

    When you want to setup a DNS server on *nix platform, the first option that may cross your mind is bind9. But there are other options such as PowerDNS. In this post I’m going to show you how to setup a DNS server in single node mode. This DNS server is going to be authoritative…

    Continue Reading →

  • Using Putty to Automate Cisco Devices

    January 27, 2021
    Automation, Linux

    Sometimes you want to automate some cumbersome tasks in your Cisco devices, namely I am dealing with an old 3750 core router with OS version 12.x and I don’t want to login to it manually every time I want to change a config or shutdown an interface. Hence I thought I can make use of…

    Continue Reading →

  • Using Maven with Socks Proxy

    October 31, 2020
    Java

    For bypassing using socks proxy use following command : mvn install -DproxySet=true -Dsocks.proxyHost=YOU_SOCKS_PROXY_ADDRESS -Dsocks.proxyPort=SOCKS_PROXY_PORT This command works in Linux and Windows Happy coding.

    Continue Reading →

  • How to Create JWT Token Using LDAP and Spring Boot Part 1

    September 15, 2020
    Java, Linux

    If you are working in an enterprise infrastructures, chances are that you are using a centralized authentication system, most likely Active Directory or openLDAP. In this blog I’ll explore how to create a REST API using spring boot to authenticate against openLDAP and create a JWT token in return. Before getting our hand dirty, we…

    Continue Reading →

  • How to Authenticate Against openLDAP Without Knowing DN Using java

    March 20, 2019
    Java, Linux

    In fact you can’t do it without knowing DN! There is an anonymous access in openLDAP which is enabled by default. The anonymous access let one to query(search filter) openLDAP without knowing bind username/password. Run following command on your openLDAP server : ldapwhoami -H ldap:// -x If you get “anonymous” as result you are all…

    Continue Reading →

  • How to use CompletableFuture in SpringBoot 2

    January 1, 2019
    Java

    In Spring Boot there is an annotation @Async to assist developers for developing concurrent applications. But using this feature is quite tricky. In this blog we will see how to use this feature along with CompletableFuture. I assumed you know the drill about CompletableFuture, so I won’t repeat the concept here. First of all you…

    Continue Reading →

  • Installing openLDAP and Making it Replicable

    November 2, 2018
    Linux

    OpenLDAP installation is fairly straight-forward and doesn’t have any caveats, but making it replicable has ambiguity. We will start with installing openLDAP. I will use following configs : ubuntu 16.04 server openLDAP 2.4.x phpLDAPadmin Installing openLDAP : First thing first, update your ubuntu box : sudo apt-get update Install openLDAP : sudo apt-get install slapd…

    Continue Reading →

  • How to Configure Iptables in Stateful Mode Properly

    October 30, 2018
    Linux

    Iptables is a software firewall based on Netfilter, in fact it’s a framework for working with Netfilter. Generally firewalls have two modes, stateless and stateful. In this post we will study a brief of how to configure Netfilter in stateful mode. I’m going to assume your linux box is fresh installation and doesn’t have any…

    Continue Reading →

1 2
Next Page→