Showing posts with label restart. Show all posts
Showing posts with label restart. Show all posts

September 23, 2019

Add custom user/system attributes in Active Directory

Hi folks,

Today I'll explain the procedure to add and verify the custom user attributes in Active Directory.

Mount the Directory Schema


  1. Open Command Prompt in Administrator mode
    • Start -> cmd -> Right click and select "Run as Administrator"
  2. Mount the directory schema command
    • cmd> regsvr32 schmmgmt.dll
  3. You will be notified with command success pop-up
    • Click on Ok

Creating Custom Attribute


  • Open mmc (Management Console)
  • Click on "File" menu and select "Add/Remove Snap in.."
  • From "Available snap-ins" section, click "Active Directory Schema"
  • Click on "Add"



  • "Active Directory Schema" should be added to "Selected snap-ins" section and click "Ok"
  • You will be viewing the "Active Directory Schema" in the console
  • Expand and select "Attributes"
  • Right click and choose "New" and select "Attribute" as shown below


  • A warning pop-up shows, click Continue


  • Create New Attribute pop-up opens up
  • Enter the custom attribute details
  • Enter the Object ID as per Reference 1


  • Select the Syntax from the list

  • Check Multi-Valued option based on your requirement
  • Click Ok


Adding to User Class


  • Newly created custom attribute has to be mapped to any one of the class (Computer, user etc)
  • To add it to user
  • (Classes -> User -> Properties -> "Add")
  • Select the custom attribute

Restarting ADDS (Active Directory Domain Service)

  • Open Services
  • Start -> Run -> services.msc
  • Navigate to Active Directory Domain Service
  • Restart the service

Verification

  • Open "Active Directory Users and Computers"
  • Go to "Users"
  • Click on any user and view properties
  • Click on "Attribute Editor" tab
  • Navigate to your custom tab

Please send your feedback to psrdotcom@gmail.com

July 29, 2019

Docker postgres db to local volume/drive for persistent storage permanently

Hi all,

Today, I would be explaining the way to maintain the DB with data persistent when connecting to docker.

System Status

Postgresql DB container is in Docker
Windows 10 PC
Linux containers

Issue

Whenever I restart docker/PC the database wiped off due to container is stopped.

Solution

Create a docker volume

Syntax: docker volume create <>
Example: docker volume create pgdata

Start the container with volume option

Syntax: docker run --rm --name <> -e POSTGRES_PASSWORD=<> -d -p 5432:5432 -v <>:/var/lib/postgresql/data <>
Example: docker run --rm --name pgcontainer -e POSTGRES_PASSWORD=MyPassword -d -p 5432:5432 -v pgdata:/var/lib/postgresql/data postgres

Now, you can run all your database commands

Upon restart also, your data should be safe.

Thanks for reading the blog post.

Please send your feedback and comments to psrdotcom@gmail.com

December 17, 2014

Android insufficient permissions for device

Hi Friends,

I was having an issue when connected my friend's Micromax Doodle to my Ubuntu with the following error
"insufficient permissions for device"

Resolution

  1. Open Terminal
  2. Kill the server by typing the following command
    • $ adb kill-server
  3. Now, start the server
    • $ adb start-server
  4. On your device, a pop-up might come asking for granting the permission
  5. Click on "Yes" for approving the access
  6. Now, check your device status with the following command
    • adb devices
  7. With the above command, you should be able to see devive IMEI and device name
Enjoy the Ubuntu and Android combination :)

Please send your comments and feedback to psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com