sam.ldb error

Rohit Rajan rohit.rajan at catalyst-us.com
Tue Sep 14 03:16:53 MDT 2010


  all i was doing as suggested by the upgradeprovision script to change 
the userAccountControl for user Administrator from value 66048 to 512 
i'm now able to edit the sam.ldb successfully but still not able to add 
any user


source4]# ./scripting/bin/upgradeprovision --full -s 
/usr/local/samba/etc/smb.conf
Creating a reference provision
Copy privilege
Update base samdb by searching difference with reference one
Starting update of samdb
There are 0 missing objects
Reloading a merged schema, it might trigger reindexing so please be patient
Schema reloaded !
We suggest that you change the userAccountControl for user Administrator 
from value 66048 to 512
There are 1 changed objects
Update of samdb finished
update secrets.ldb
Update machine account
Updating SD
Upgrade finished !
Reopenning samdb to trigger reindexing if needed after modification
Reindexing finished
[root at cbsdelsdc01 source4]#




On 9/14/2010 12:30 PM, Matthieu Patou wrote:
>  Hi Rohit,
>
>
> Try to reindex your database and try to understand what are the nasty 
> things that you are doing with your provision, you should always edit 
> it carefully  !
>
> Matthieu.
> On 14/09/2010 06:57, Rohit Rajan wrote:
>>  Hi All,
>>
>> i have got the following error when trying to create the user from 
>> the "net command"
>>
>> #net newuser "username"
>> New Password:
>> ERROR: Failed to create user "username" : 
>> ../lib/ldb/ldb_tdb/ldb_index.c:1183: Failed to re-index objectSid in 
>> CN=username,CN=Users,DC=XXX,DC=com - 
>> ../lib/ldb/ldb_tdb/ldb_index.c:1115: unique index violation on 
>> objectSid in CN=username,CN=Users,DC=XXX,DC=com
>>
>> Thanks
>> Rohit Rajan
>>
>>
>> On 9/14/2010 8:14 AM, Rohit Rajan wrote:
>>>  Hi All,
>>>
>>> I'm getting the following error when trying to edit the sam.ldb 
>>> file, also i'm not able to add any user from "Active directory users 
>>> and computer"
>>>
>>> {samba Version 4.0.0alpha12-GIT-35aed17, Python 2.4, centos 5.5 }
>>>
>>>
>>> ]# ldbedit -H /usr/local/samba/private/sam.ldb
>>> failed to modify CN=Administrator,CN=Users,DC=catalyst-us,DC=com - 
>>> error in module samldb: Unwilling to perform (53)
>>> # 0 adds  0 modifies  0 deletes
>>>
>>> Thanks
>>> Rohit Rajan
>>>
>>>
>>> -----------
>>> This message may contain confidential, proprietary or legally 
>>> privileged information. In case you are not the original intended 
>>> recipient of the message, you must not, directly or indirectly, use, 
>>> disclose, distribute, print, or copy any part of this message and 
>>> you are requested to delete it and inform the sender.
>>> Any views expressed in this message are those of the individual 
>>> sender unless otherwise stated. Nothing contained in this message 
>>> shall be construed as an offer or acceptance of any offer by 
>>> "Catalyst Business Partners" or any of its subsidiaries unless sent 
>>> with that express intent and with due authority of Catalyst Business 
>>> Partners.
>>> Catalyst Business Partners has taken sufficient measures and 
>>> precautions to prevent the spread of viruses. However the company 
>>> accepts no liability for any damage caused by any virus transmitted 
>>> by this email.
>>>
>>>
>>
>>
>>
>> -----------
>> This message may contain confidential, proprietary or legally 
>> privileged information. In case you are not the original intended 
>> recipient of the message, you must not, directly or indirectly, use, 
>> disclose, distribute, print, or copy any part of this message and you 
>> are requested to delete it and inform the sender.
>> Any views expressed in this message are those of the individual 
>> sender unless otherwise stated. Nothing contained in this message 
>> shall be construed as an offer or acceptance of any offer by 
>> "Catalyst Business Partners" or any of its subsidiaries unless sent 
>> with that express intent and with due authority of Catalyst Business 
>> Partners.
>> Catalyst Business Partners has taken sufficient measures and 
>> precautions to prevent the spread of viruses. However the company 
>> accepts no liability for any damage caused by any virus transmitted 
>> by this email.
>>
>
>



-----------
This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. 

Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by "Catalyst Business Partners" or any of its subsidiaries unless sent with that express intent and with due authority of Catalyst Business Partners. 

Catalyst Business Partners has taken sufficient measures and precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.



More information about the samba-technical mailing list