Displaying 7 results from an estimated 7 matches for "add_posix_machin".
Did you mean:
add_posix_machine
2005 May 26
1
Re: RE pdb_ldap.c, ldapsam_add_sam_account, existing poxisaccount
...just makes the posixaccount and expects samba to
> > do the rest...
> >
> > # MACHINE ACCOUNT
> > if (defined($Options{'w'}) or defined($Options{'i'})) {
> >
> > #print "About to create machine $userName:\n";
> >
> > if (!add_posix_machine
> > ($userName,$userUidNumber,$userGidNumber,$Options{'t'})) {
> > die "$0: error while adding posix account\n";
> > }
> >
> > if (defined($Options{'i'})) {
> > ...
> > }
> >
> > $ldap_master->unbind;
>...
2005 Jun 04
3
smbldap-tools and joining workstation to domain
...t sambaSAMAccount
entrys are only added when -i switch is used (trusted workstation account).
----------- CODE SNIP --------------------
# MACHINE ACCOUNT
if (defined($Options{'w'}) or defined($Options{'i'})) {
#print "About to create machine $userName:\n";
if (!add_posix_machine
($userName,$userUidNumber,$userGidNumber,$Options{'t'})) {
die "$0: error while adding posix account\n";
}
if (defined($Options{'i'})) {
# For machine trust account
# Objectclass sambaSAMAccount must be added now !
my $pass;
my $pass2;...
2004 Sep 24
1
Re: Samba 3.0.3 on FC2: windows machine cannot join domain
...o the smb.conf file to see what it
should do to add the machine and sees:
add machine script = /usr/local/sbin/smbldap-useradd -w "%m"
After processing through the lines mentioned above of smbldap-useradd
you would end up with $userName == INFERIOROS$
In line 218 where the subroutine add_posix_machine from smbldap_tools.pm
is called the $userName gets passed into line 373 of that perl module
which reads:
my $add = $ldap->add ( "uid=$user,$config{computersdn}.....
Don't we want the $user passed in to be the machine name in this case
since it is a machine we are adding and not a...
2004 Jan 14
0
Problems with smbldap-tools 0.8.2 and Samba 3
...Computers,dc=guaydil,dc=prv)
[2004/01/14 18:15:49, 0] pc_server/srv_samr_nt.c:_samr_create_user(2330)
could not add user/computer nodo03$ to passdb. Check permissions?
------
This is the problematic (I think) piece of smbldap-useradd.pl
###### Here the posixAccount is added ########
if (!add_posix_machine ($userName, $userUidNumber, $userGidNumber)) {
die "$0: error while adding posix account\n";
}
if (!$with_smbpasswd) {
### The script "executes" this branch, so nothing is done. It expects
### Samba to add the sambaSAMAccount, but I think that Samba fails...
2006 Feb 10
0
Upgraded from 3.0.9 -> 3.0.21b - Now adding machines a problem
...mber,$Options{'t'})) {
die "$0: error while adding samba account\n";
}
}
right under the following:
# MACHINE ACCOUNT
if (defined($Options{'w'}) or defined($Options{'i'})) {
#print "About to create machine $userName:\n";
if (!add_posix_machine
($userName,$userUidNumber,$userGidNumber,$Options{'t'})) {
die "$0: error while adding posix account\n";
}
so that the rest of the ldap info was getting filled in. It still would
bomb out on me with the error "The user name could not be found" but it
did ma...
2006 Feb 10
0
Upgraded from 3.0.9 -> 3.0.21b - Now adding machines aproblem
...mber,$Options{'t'})) {
die "$0: error while adding samba account\n";
}
}
right under the following:
# MACHINE ACCOUNT
if (defined($Options{'w'}) or defined($Options{'i'})) {
#print "About to create machine $userName:\n";
if (!add_posix_machine
($userName,$userUidNumber,$userGidNumber,$Options{'t'})) {
die "$0: error while adding posix account\n";
}
so that the rest of the ldap info was getting filled in. It still would
bomb out on me with the error "The user name could not be found" but it
did ma...
2003 Nov 11
1
Samba 3 Redhat 9 Openldap doc
...39;}));
########################
my $ldap_master=connect_ldap_master();
# MACHINE ACCOUNT
if (defined($tmp = $Options{'w'})) {
# add a trailing dollar if missing
if ($userName =~ /[^\$]$/s) {
$userName .= "\$";
}
#print "About to create machine $userName:\n";
if (!add_posix_machine ($userName, $userUidNumber, $userGidNumber)) {
die "$0: error while adding posix account\n";
}
if (!$with_smbpasswd) {
# (jtournier)
# Objectclass sambaSAMAccount is now added directly by samba when joigning
the domain (for samba3)
# if (!add_samba_machine_mkntpwd($userName, $userUidNum...