Added Locations Delete CRUD element

This commit is contained in:
2025-10-03 21:27:00 +02:00
parent 308c5f808c
commit bd298874c4
2 changed files with 24 additions and 0 deletions

View File

@@ -261,6 +261,12 @@ public partial class LdapService : IDisposable
DeleteObjectByDn(dn);
}
public void DeleteLocation(string cn)
{
string dn = PrependRDN($"cn={cn}", LocationsBaseDn);
DeleteObjectByDn(dn);
}
public async Task UpdateUser(string uid, string attributeName, string attributeValue)
{
await UpdateObject(UsersBaseDn, "uid", uid, attributeName, attributeValue);