search for: computer_dn

Displaying 4 results from an estimated 4 matches for "computer_dn".

Did you mean: compute_df
2009 Jul 29
1
Batch computer account creation
...d only auto generated value) Is there any way to do that under Linux ? Thanks, Thomas #! /usr/bin/perl use strict; use Net::LDAP; use Net::LDAP::Entry; my $base_dn = "DC=my,DC=domain"; my $computer_name = "host01"; my $computer_branche = "OU=Workstations"; my $computer_dn = "CN=$computer_name,$computer_branche,$base_dn"; my $ldap = Net::LDAP->new( 'ldap://20.20.1.11') or die "$@"; my $mesg = $ldap->bind ("CN=Administrator,CN=Users,$base_dn", password => "secret"); $mesg->code && die $mesg->erro...
2024 Nov 20
1
samba-tool computer delete does not work
...none of the pc accounts had the attribute > dNSHostName there are no dns-rcords concerning the account The computer accounts should have the dNSHostName attribute set. This seems to explain why it hangs though, the code is this: if "dNSHostName" in res[0]: computer_dns_host_name = str(res[0]["dNSHostName"][0]) else: computer_dns_host_name = None Which means that 'computer_dns_host_name' is being set to 'None' Then, a bit lower down, in the 'try' there is this: try: samdb.delete(...
2024 Nov 20
1
samba-tool computer delete does not work
hi, i deleted the accounts with pdbdel. I did a few spot checks, none of the pc accounts had the attribute dNSHostName there are no dns-rcords concerning the account we use bind9 for dns. all pc have a bind9 configured as dns server, which is a dns slave of the bind9 on the samba server. here the requested informations: all DC are on samba smb.conf [global] netbios name = DCX
2024 Nov 20
1
samba-tool computer delete does not work
...ribute > > dNSHostName there are no dns-rcords concerning the account > > The computer accounts should have the dNSHostName attribute set. > This seems to explain why it hangs though, the code is this: > > ??????????? if "dNSHostName" in res[0]: > ??????????????? computer_dns_host_name = > str(res[0]["dNSHostName"][0]) > ??????????? else: > ??????????????? computer_dns_host_name = None > > Which means that 'computer_dns_host_name' is being set to 'None' > > Then, a bit lower down, in the 'try' there is this: >...