Quantcast
Channel: Directory Services forum
Viewing all 31638 articles
Browse latest View live

Reason for domain join and dis join

$
0
0

Hi,


As part of troubleshooting activity, we normally disjoin and join the pc in the active directory domain.

without knowing the proper reason we are not suppose remove the pc from the domain.

I am looking for the reason when I should disjoin and join. 


How to verify the KDS Root Key is replicated successful amongst DCs and using wildcard SSL Certificate

$
0
0

Hello all;

this is my first time to setup AD FS, because one of my new cloud solution require AD FS for my users to sign on to their service with AD account.  I have one CA server installed.  I would like to confirm what is the impact after setup the AD FS server in my infrastructure.

1) After issue command to create a KDS Root Key, how can I make sure it is replicated to all DCs successful before I started to create gMSA account with (New-ADServiceAccount -Name...) command.

2) Once I issue the command to create kds root key, "Add-KdsRootKey –EffectiveImmediately"; any negative impact on all existing user account in AD?

3) I have my own CA certificate server to issue cert for internal workstation, users, etc.  Any impact to this CA setup after KDS Root Key created?

4) Can I use public CA signed certificate on AD FS Proxy at DMZ network but using the internal CA signed certificate on AD FS server deployed at intranet, or I must use the same type of certificate on both AD FS and AD FS Proxy?

Thanks in advance.


KW - CNE,MCSE,VCP5

object list in active directory

$
0
0
Dear Forum expert usrs,



i would like to give my one of none domain admin active directory user  permission so he may be able to set or apply or run the following command. 

dsacls.exe  "OU=OU7,OU=Tenants,DC=lab22,DC=labtest,DC=com" -I:T /G "Authenticated Users:GR". If i give full control ou7 or give admin rights to one of users then works fine. But i would like to have minimum rights inorder to achivie this on that particule and its sub child ou. 



Thanks. 


 

permision Restore Deleted Active Directory computer?

$
0
0

hello,

Peace
I have a script I wrote for computer recovery that is removed from the domain by the following command:

Get-ADObject -Filter 'samaccountname -eq $comp' -IncludeDeletedObjects | ForEach-Object {
  If ($_.Deleted)
  {
    Restore-ADObject $_
  }

But I need special permissions for that 
If I run the command with DomainAdmin I succeed
But I do not want these permissions to have a laser running the script
How delegation privileges am I required to perform this operation in AD


s

Active directory design and SD-WAN- Windows 2016 or above

$
0
0


We need  to  work  out   active  design considerations     for  new    setup  where  in   Company   wants  to  have     DC  and ADC in  DataCenter  and  implementing  SD/WAN to  connect across  branch  locations   

previously there  was no centralized  authentication  methods in place.

Company  doesn't need     read/write  DC on  branches   only   RODC  , just wondering   if we must have  one   RODC  per   site/branch   ,  if  RODC   goes   down  how will logon/dns  resolution  work,    do we need  to define  logical sites  /replication ?

File  and Print servers  will be local to each branch

IP allocation configuration /DHCP?  still   to be decided

from active  directory design perpective  do we need  tohave different IP subnets    foreach branch


Error - UNWILLING_TO_PERFORM - while change user password in AD ldap using python code

$
0
0

I am creating a simple python function to change the user password. I have tested my AD set up, able to search the user and get correct response but when try to run l.modify_s, I get the below error. AD user has the required permissions. Not sure why am I getting this error.

"errorType": "**UNWILLING_TO_PERFORM**","errorMessage": "{'info': u'0000001F: SvcErr: DSID-031A12D2, problem 5003 (WILL_NOT_PERFORM), data 0\\n', 'msgid': 3, 'msgtype': 103, 'result': 53, 'desc': u'Server is unwilling to perform', 'ctrls': []}" }

Please find my code below
import ldap
import os
import boto3
import random
import string

from base64 import b64decode

import ldap

def lambda_handler(event, context): 
    try:
        cert = os.path.join('/Users/marsh79/Downloads', 'Serverssl.cer')
        print "My cert is", cert
        # LDAP connection initialization
        l = ldap.initialize('ldap://WIN-E3EJL23P92K.corp.asurjit79.com')
        # Set LDAP protocol version used
        l.protocol_version = ldap.VERSION3
        #Force cert validation
        l.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_DEMAND)
        # Set path name of file containing all trusted CA certificates
        l.set_option(ldap.OPT_X_TLS_CACERTFILE, cert)
        # Force libldap to create a new SSL context (must be last TLS option!)
        l.set_option(ldap.OPT_X_TLS_NEWCTX, 0)

        bind = l.simple_bind_s("admin@corp.example.com", "secret_pass")
        base = "OU=Enterprise,OU=Users,OU=corp,DC=corp,DC=example,DC=com"
        criteria = "(objectClass=user)"
        attributes = ['distinguishedName']
        result = l.search_s(base, ldap.SCOPE_SUBTREE, criteria, attributes)
        results = [entry for dn, entry in result if isinstance(entry, dict)]
        new_password='secretpass_new'
        unicode_pass = unicode('\"' + new_password + '\"', 'iso-8859-1')
        password_value = unicode_pass.encode('utf-16-le')
        add_pass = [(ldap.MOD_REPLACE, 'unicodePwd', [password_value])]
        print "My result distinguishedName1:", results[0]['distinguishedName'][0]
        print "My result distinguishedName2:", results[1]['distinguishedName'][0]

        
        l.modify_s(results[0]['distinguishedName'][0],add_pass)
        
        print results
        
    finally:
        l.unbind()

I have checked multiple things

  1. Password complexity is good
  2. Enabled secured ldap on my AD server and tested this using ldp.exe and I can connect using port 636
  3. I am able to run this code if I just need to search the user. I get the search results.
  4. But when I try to modify the password, it breaks without any clear explanation why it is not willing to perform this operation...which is very annoying :X

ADMT 3.2 User Migration issue

$
0
0

I am using ADMT 3.2 inter-domain user Migration with in the forest.

After the migration below issues are occurring:

1. UPN suffix is getting changed- I know this is common but its not setting it to the destination domain suffix instead using one of my email domain suffix which i have manually added in UPN suffixes under Domains and Trusts.

2. "user must change password at next logon" getting checked.

3. While checking the creation date i found the user is showing as a newly created user at the Destination and SiDhistory is showing some values which is contradicting and of course i am doing migration and not newly creating the users in the Destination domain.

checked GPO and nothing is related to this.

checked UPNSuffix attribute for the domain if that is hardcoded somehow via GPO or OU properties but this is not the case either.

Is there something needs to be checked at ADMT or this is related to something else, please help me with your feedback.

windows 2019 Domain controller

$
0
0

Hello All,

i need some advise here, we are currently have win2012 r2 dc, and planning to upgrade to win 2019 DC.

Please let us know if we have to extend the schema or just get new server with 2019 OS and promote it?

regards

Aamir Masthan


NA


Trusting AD CS CA issued SSL in another AD Domain that has no trust relationship

$
0
0

Trusting AD CS CA issued SSL in another AD Domain that has no trust relationship

Hello - We have two 2016 level AD domains. They are not in a forest and there's no trust relationship.

One domains controller in the 1st domain (DMZ) has an AD CS role and I have issued issued a CA SSL (server auth) cert to the WSUS in the same domain. The WSUS will serve as the WSUS for both AD domains, DMZ and Domain2.

Currently, Domain2 GP is configured to deliver the certificate to the Trusted Root Certificate Authorities repository. The machines in the test are receiving the certificate successfully and GP is processing without issues. All the GP settings pushed by the group policy are correct for WSUS URL, there is no FW in the middle. The machines can check into our previous WSUS in the DMZ domain that is not secured over SSL. 

Those client computers in Domain2 however, fail to check for updates with the new SSL configured WSUS with error 800b0109

Viewing the SSL certificate certification path on the Domain2 machines shows the message "the issuer of this certificate could not be found".

The question is, is it is possible to have the DMZ CA SSL cert trusted by the secondary domain (Domain2) computers so that WSUS can be secured with SSL across domains?

Thank you for any advice.

Ways to seamlessly migrate an existing DC (windows server 2012) to a new server (windows server 2016).

$
0
0

I have an existing domain - but I was given a task to reconfigure a new one.
I have zero experience in this field some maybe some/all of my questions may sound stupid for you guru.
1) How do I create a new DC without the need to manually reconnect each and every client to "new domain". It seems to me that the new domain should have a new UUID even if it has the same name as the previous one? What is the industry standard way to do it? Do I need to migrate from the old server to a new one? Or isn't it enough just to migrate, and I have to add a new DC to an existing forest.
2) What are the instruments to migrate - DNS, DHCP, GPO, and Active Directory itself? Is there a way to migrate it selectively? so wrong settings from the previous DC won't go to a new one?   
3) How do I properly install a new DC with a minimum downtime? Is there a proper way?

is it possible to do it seamlessly without copying all the settings from the previous DC?

Computer restarts A critical system process, "failed with status code c0000005" - Windows 10

$
0
0
Hello,

My computer is automatically restarting, when I consulted the event viewer, the error was as follows:

"A critical system process, C: \ WINDOWS \ system32 \ lsass.exe, failed with status code c0000005. The machine must now be restarted."

Active Directory Domain services monitoring

$
0
0
Hello, I'm using Active Directory on Windows server 2016, other application in my company which works on linux, is connected to my DC. Sometimes this application couldn't synchronize users from my DC. I want to proof that problem isn't on my side, I can't find any event logs related to this problem. I need monitoring software to show them logs, please any advice. Thanks

Shota Tadumadze

User certificates not auto enroling

$
0
0

Help!  I'm really pulling my hair out with this one.

I have duplicated the user template on my CA and added an AD user group with the autoenrol permission.  This template has been published and I have a group policy added to my users OU which enables certifcate auto enrolment.

When a test user logs in, I open up the local certificate user store and see nothing in the personal folder?

Machine certificates seem ok, it's only the user ones which aren't working.  If I right-click and request new certificate, the certificate comes up and I can install it ok.

It's just auto enrolment not working.  I've read the Microsoft guides, and all it says is to add the user group to the template with the permissions and set a group policy.  I've done all that, so there must be something else I need to do.

Thanks!!

Why do I get inconsistent results from AD-User?

$
0
0

I have 2 custom attributes created by a script with exactly the same values. Except of course name and number.

But, the output is different. Look at this output. How can it be?

Set-ADUser testing.user.ext -Replace @{birthDate = '19880804000000.0Z'}
Set-ADUser testing.user.ext -Replace @{identityEndDate = '19880804000000.0Z'}
Get-ADUser testing.user.ext -Properties birthDate,identityEndDate|Select-Object -Property birthDate,identityEndDate | fl


birthDate       : 8/4/1988 12:00:00 AM
identityEndDate : {19880804000000.0Z}


GH


Windows failed to apply the group policy registry settings. Group policy settings might have its own log file.

$
0
0

Hi Experts!

We have some issue with GPO in active directory 2016. The issue was occurred when we upgrade the AD 2008R2 to windows 2016 using clean installation method. 

Background of the issue : 

2008R2 Active Directory was being upgraded to Windows server 2016 using clean installation method. After migrated they noticed that some of GPO policy is missing and there was an replication has test passed in dcdiag. 

1. We run DC DIAG 

Windows failed to apply the group policy registry settings. Group policy settings might have its own log file.

Event ID : 0x0000043D

There are warning or error events within the last 24 hours after the SYSVOL has been shared. Failing sysvol replication problems may cause group policy problem

2 . Repadmin /showrepl




Homer Sibayan


adding second adfs server

$
0
0

I like to confirm below steps as we are planning to add second adfs server and create a farm.

Currently we have adfs running on server 2012r2 ... with adfs1 yourdomain name  
 and dns entry as adfs yourdmain name   (using for dropbox,zoom, adobe etc etc)

now to add second server build server 2012r2 name adfs2
export communications SSL from adfs1 and import in adfs2
run wizard for new install and add to farm ?
we have WID no SQL db
once its done in dns add point adfs2 also ?
What about Token - encrypting / signing situation ?

Group Naming Conventions

$
0
0

Hi

I am just trying to come up with a good naming convention for my groups in AD but i am struggling to think if my "components" of the group name are sensible or not, could do with some examples really of what others use to name their groups to check if i'm on the right lines. i have been making some notes from various other sites and this is what i have so far for our company:

A Group name is comprised of the following sections:

  • 2 letter prefix which denotes group scope
  • 3 letters which denotes Group Type
  • 3 letters - Management Rule (such as ACL) usually used with DL scopes
  • Role name (such as Accounts or Sales) usually used with GL scopes
  • Access level (such as Read, Modify, Full Controll) usually used with DL scopes

so for example, DL-SEC-ACL-SALES-READ, this means Domain Local, Security group, applied to ACLs for the Sales team, read only.

i have some other "group types" such as; Security, Distribution, Delegate, Group Administrators, Application Admins.

does my convention make sense? could someone provide some examples of how they name their groups so i can see if im on the right tracks?

many thanks

Steve

Conditional Forwarder

$
0
0

Hi,

Do we still need to have a conditional forwarders between two domain having a forest level trust over internet connected with ipsec vpn tunnel. If not then how to configure the DNS properly to let both the domains resolve DNS names of each other properly?

Thanks.

is there any script for finding out the inactive AD user for more then 45 days and sending an email to respective users manager

$
0
0

Hello All,

I am looking for script for finding out the inactive AD user for more then 45 days and sending an email to respective users manager


Thanks

Windows cannot move object error...

$
0
0

Hi everyone!

  May someone help me with this error when i try to move a user object to another OU?


Doria

Viewing all 31638 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>