Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have a local group for an LDAP user

Tags:

ldap

local

I have an LDAP server to which I do not have full privileges and an ubuntu system with LDAP authentication to which I am root. Is it possible to add an LDAP user to a local group? (I don't know if I phrase this correctly but all I want is to have a user in LDAP in a group without editing the actual database)

like image 378
fakedrake Avatar asked Apr 26 '10 09:04

fakedrake


People also ask

What is LDAP user group?

LDAP is the Lightweight Directory Access Protocol. It's a hierarchical organization of Users, Groups, and Organisational Units - which are containers for users and groups. Every object has it's own unique path to it's place in the directory - called a Distinguished Name, or DN.

How do I get groups from LDAP?

First the baseDN (-b) should be the top of your hierarchy: dc=openldap . This will return the group entries. If you are only interested in the name, add dn at the end of the query. If you search under ou=groups, with a subtree scope, for all entries, the ou=groups entry will be returned.

Where are LDAP users stored?

LDAP passwords are normally stored in the userPassword attribute. RFC4519 specifies that passwords are not stored in encrypted (or hashed) form. This allows a wide range of password-based authentication mechanisms, such as DIGEST-MD5 to be used. This is also the most interoperable storage scheme.


2 Answers

Based on your answer it seems like what you needed was:

$ addgroup <group_name> (to make the group)

$ adduser -g <groupname> <username> (to add the user to the group)

like image 128
MarkJL Avatar answered Oct 12 '22 15:10

MarkJL


OK silly me, just edited /etc/groups and worked

like image 45
fakedrake Avatar answered Oct 12 '22 15:10

fakedrake