search for: pdbedit

Displaying 20 results from an estimated 1317 matches for "pdbedit".

2014 Dec 15
3
Strange problem with pdbedit -Lv : missing users ?
Dear all, I have a very strange problem with "pdbedit -Lv" under Samba 3.3.10, a lot of users and machines are missing ! Strangely, all these missing machines and users are working perfectly well. The problem is that I need to get their SID to be able to migrate to a new server... TECHNICAL DETAILS : * Samba 3.3.10 * Number of machine...
2012 Apr 03
1
macro characters with pdbedit ?
Hi, I would like to change the Logon script name attributes of a samba user account to something like logon%u.cmd using pdbedit with the --script option. It does not work because the string logon%u.cmd is litteraly taken as the value, loosing the variable substitution at evaluation time. pdbedit -v output gives "Logon Script : logon%u.cmd" .? When creating a user account without --script option, it takes by defau...
2009 Oct 08
6
Change Allowed Workstations with pdbedit
...ssword database and wonder how I can change the "Workstations" value in order to control the allowed workstations for a particular user. Last year I had a configuration with ldap using the smbldap tools where it was possible to set this value. But how can I set it without LDAP just using pdbedit? In the official Samba 3.2.x HOWTO and Reference Guide in Chapter 11 Section "The pdbedit Tool" (http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#pdbe ditthing) there is an example where "Workstations" is set to "melbelle" - but no explanation of...
2004 Jun 09
1
pdbedit
I have a couple of questions about pdbedit. I am having trouble using pdbedit in shell scripts. First, on a freshly installed system with no-one in the tdbsam database, trying to add multiple machine accounts via a loop construct in a shell script fails with a message that the database can't be found/doesn't exist. I then added ro...
2009 May 15
4
Timing in a script
Hi, all -- I am trying to write a script in which I can add users and their samba passwords easily and quickly.? It looks something like: ?? useradd -c "User Name" -g groupname -p unixpassword accountname ?? echo -e "smbpassword\nsmbpassword\n" | pdbedit -a -t -u accountname If I type the lines from the keyboard, it works fine.? However, when I try to execute the script, the pdbedit on the second line reports that there's no unix accountname to apply to samba.? I assume that this is because the useradd process hasn't finished when the pdbe...
2004 Feb 12
3
More to pdbedit -L segfault
I have recompiled pdbedit 3.0.2 with -g flag to be able to list sources from gdb when debugging pdbedit and discovered some more info but don't know how to interpret it: (gdb) frame 1 #1 0x0806c899 in init_sam_from_buffer (sampass=0x81b8c28, buf=0x81b8d78 "", buflen=208) at passdb/passdb.c:1462 1462...
2014 Dec 15
2
Strange problem with pdbedit -Lv : missing users ?
...ny advice, Denis Le 15.12.2014 22:00, Gaiseric Vandal a ?crit : > What is the backend ? Can you use tdbdump to dump out the local account > info from samba password file? > > On 12/15/14 15:22, Denis BUCHER wrote: > >> Dear all, I have a very strange problem with "pdbedit -Lv" under Samba 3.3.10, a lot of users and machines are missing ! Strangely, all these missing machines and users are working perfectly well. The problem is that I need to get their SID to be able to migrate to a new server... TECHNICAL DETAILS : * Samba 3.3.10 * Number of machines : * Unix :...
2012 Apr 04
1
(no subject)
...on the OS . So having logon script = logon%a.cmd in the smb.conf generally works thanks to variable substitution. ? But for user accounts that have been created with the USRMGR.EXE tools, the Logon Script attributes have not been set and it seems not possible to modify it with variables using "pdbedit --script" .(one precision : I use? passdb backend = tdbsam ). ? Your script could help , but as you said logon script name will be hardcoded for each users which I want to avoid. Isn't it possible to manually change some entries in the passdb.tdb file ? ?? ? Henri ? > -----Message...
2007 Sep 19
1
pdbedit -P "password history" doesn't work !!
Hi ! This is my firs post here. I've got a problem with password history policy -C 3 which doesn't work !! I set policy pdbedit -P "maximum password age" -C 777600 (90days) pdbedit -P "minimum password age" -C 691200 (80days) "user must logon to change password" -C 2 "password history" -C 3 On clients (XP PRO) some of people doesn't see warrning with "p...
2004 Jan 09
1
pdbedit bug?
If I try to do the following: /usr/local/samba/bin/pdbedit -a -u someusername -U 5000 This works as one would think, the account is created with a RID of 5000. But when I do: /usr/local/samba/bin/pdbedit -a -m -u somemachinename -U 3000 It does not work as you would think. The account is created but with the RID of the Unix UID*2+1000 not, a RID of 3000...
2004 Jul 21
2
PDBEDIT USE - ACCOUNT FLAGS AND POLICIES - 2ND TIME
Hi everyone... Can somebody help me? I've sent this last Sunday but nobody has replied. Cheers, Rafael -----Mensaje original----- De: Rafael Paris [mailto:rparis@hotelmaruma.com] Enviado el: Domingo, 18 de Julio de 2004 06:58 p.m. Para: 'samba@lists.samba.org' Asunto: PDBEDIT USE - ACCOUNT FLAGS AND POLICIES Good afternoon everyone. I'm trying to set account control flags and password expire policies but i don't succeed. Please help. Need a lot a direction in this. I ran the command: pdbedit -c "[L ]" -u username But nothing changes at all. I also r...
2005 Jan 06
1
pdbedit syntax for forcing user to change password
Hi all Maybe a stupid question, but I'm not able to figure this out from the manpage nor from the HOWTOs... How can I force a user to change his password at next logon? I tried: # pdbedit -P "user must logon to change password" -C 0 -u username # pdbedit -u username -P "user must logon to change password" -C 0 # pdbedit -P "user must logon to change password" -C 0 username + these without -C 0 -> Incompatible or insufficient options on command line!...
2005 Aug 09
1
pdbedit not working as documented
I have am hitting a wall with pdbedit, as shown below. Any workarounds would be greatly appreciated. I am encountering the inability to change any users (profile) SID on Samba 3.x for Linux and BSD, which causes the accounts to no longer recognize their local Samba 2 profiles once they join Samba 3 domain. If I add a new user and pdb...
2010 Dec 05
4
samba 3.5.x, pdbedit smb.conf and profiles
Who wins the fight for the roaming profile path, "logon path" in smb.conf or "profile path" set by pdbedit? How do you force the "profile path" in pdbedit to get its value from "logon path" in smb.conf? Is it possible to disable roaming profiles by user with pdbedit and leave "logon path" set in smb.conf? Thanks.
2007 May 30
1
pdbedit and password expiration
I have been working to get pdbedit to expire passwords. I have seen several bugs related to pdbedit (bugzilla bug 4630 for example) on 3.0.25 so I upgraded to 3.0.25a, the latest Samba version as of this writing. What I am trying to do is set a particular user's password to expire on a certain date. If that can't be don...
2007 Sep 12
1
Clearing account lockout
I recently am migrating my PDC from NT4 to Samba 3.025. Apparently due to a mismatch between the capitalization of the Windows account and the Unix account (Administrator vs administrator) I managed to lock the account before catching the discrepenacy. # pdbedit -v administrator Unix username: Administrator NT username: Administrator Account Flags: [ULX Bad password count : 5 I reset the bad password count" field with the following command pdbedit -z -u administrator However, the account is still locked and I can no...
2004 Feb 12
1
pdbedit 3.0.2 segfault
Hello I have samba-3.0.2 installed into /usr/local/samba/ by means of cd /usr/src/samba-3.0.2/source ./configure --with-acl-support make make install When I run pdbedit -L I get a segfault: oberon root # pdbedit -L Segmentation fault (core dumped) This occurs after samba of unknown version from these two: 3.0.1pre2 3.0.2 has been reinstalled with samba-3.0.2 (gdb) bt #0 0x400f9bf9 in free () from /lib/libc.so.6 #1 0x08068472 in init_sam_from_buffer () #2 0x...
2005 Aug 10
0
[GOLUM] RE: pdbedit not working as documented
...s it does mine! Thanks for nothing. > > -----Original Message----- > From: golum-bounces@golum.org [mailto:golum-bounces@golum.org] On Behalf Of > John McLoskey > Sent: Tuesday, August 09, 2005 3:03 AM > To: samba@lists.samba.org; golum@golum.org > Subject: [GOLUM] RE: [Samba] pdbedit not working as documented > > Am I building user_sid internally every time? > We seem to ignore -U argument to pdbedit. > At line 475 of samba-3.0.14a/source/utils/pdbedit.c; > > ??????if (user_sid) { > ??????????????DOM_SID u_sid; > ??????????????if (!string_to_sid(&...
2007 Jan 11
1
pdbedit problems
Greetings, I am running samba-3.0.10-1.4E.9 installed from rpm on CentOS 4.4. I have it configured as a PDC. It is using the /passdb backend = tdbsam/ backend. I am using /pdbedit/ to make some configuration changes to user passwords. I would like to expire a users password, so that they are required to change it the next time they log in. From all that I have read in on-line resources (including the Samba How To), it says to run the following command (this should effect...
2018 Apr 27
1
wiki suggestions, part 2
Am 26.04.2018 um 20:07 schrieb Harry Jede via samba: > No, i have created 2 users with same sid. > > root at capella:~# pdbedit -Lv | grep "User SID" | sort|uniq -d > root at capella:~# > > root at capella:~# pdbedit -L|grep Failing > ldapsam_getsampwsid: More than one user with SID [S-1-5-21-3958726613-3318811842-4132420312-21010]. Failing. count=2 > ldapsam_getsampwsid: More than one user with S...